[mythtv] [mythtv-commits] Ticket #4381: Using a Miscellaneous Status Information (see ticket #4049) makes mythbackend segfault occasionnally...

Michael T. Dean mtdean at thirdcontact.com
Thu Jan 24 18:27:33 UTC 2008


On 01/19/2008 04:21 PM, Nicolas Riendeau wrote:
> BTW, the small problem I mentionned in the ticket is that the output of "sensors" is
> localized (at least the one bundled with FC8) so when the locale is different from
> en_US.US-ASCII, what gets extracted by awk (in the myth_sensors.sh script) is not
> exactly what we would want it to be.
>
> [For example, with a LANG=en_US.UTF-8 or LANG=en_US.ISO-8859-1,

Hmmm.  My system uses en_US.iso88591 .  I think the above might be a bad
charset name (and setting that value on my system also breaks it). 
Regardless, since it didn't work with your system's default localization
(which I'm assuming is different), we need to fix it.

>  there is no longer a 
> space in the temperatures readings between the units (which now use non us-ascii 
> characters) and the temperature (number) so what gets extracted contains the units.]

Well, I don't think I can go to far with the "simple gawk script"
approach I tried to use, so I wrote a little Perl script, instead.  Does
the attached work for you without any LANG= workaround?  It has a much
better regex and is also more capable, so if it works, I'll write it up
into a proper myth_sensors.pl and submit the change to Trac.

Also, what locale is your system configured to use?  And, if the
attached doesn't work, can you send the output of your sensors program
to me (as an attached file), please.

Thanks for testing,
Mike
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: myth_sensors.sh
Url: http://mythtv.org/pipermail/mythtv-dev/attachments/20080124/ffb46b75/attachment.diff 


More information about the mythtv-dev mailing list