On Wed, 25 May 2011 10:59:29 +0200, Valerio Pachera <siri...@gmail.com>
wrote:

> Esempio del testo di cui faccio il parse
> 
> coretemp-isa-0007
> Adapter: ISA adapter
> Core 7:      +33.0°C  (high = +84.0°C, crit = +100.0°C)

Probabilmente dipende dal diverso env in cui viene eseguito sensors. Se
non è su console UTF-8 sembra non emetta il "°".

piro@bagheera:~$ echo $LANG
en_GB.UTF-8

piro@bagheera:~$ sensors | tail -2
temp8:        +0.0°C           

piro@bagheera:~$ LANG=C sensors | tail -2
temp8:        +0.0 C               


-- 
Daniele Varrazzo - Develer S.r.l. 
http://www.develer.com
_______________________________________________
Python mailing list
Python@lists.python.it
http://lists.python.it/mailman/listinfo/python

Rispondere a