encodes (as octal) the degree sign because gettext does not support extended ascii
authorJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 27 Apr 2012 19:53:04 +0000 (19:53 +0000)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Fri, 27 Apr 2012 19:53:04 +0000 (19:53 +0000)
src/lib/psensor.c

index f69c6d2..ab54c6c 100644 (file)
@@ -467,9 +467,9 @@ const char *psensor_type_to_unit_str(unsigned int type, int use_celcius)
 {
        if (type & SENSOR_TYPE_TEMP) {
                if (use_celcius)
-                       return _("°C");
+                       return "\302\260C";
                else
-                       return _("°F");
+                       return "\302\260F";
        }
 
        if (type & SENSOR_TYPE_FAN)
@@ -478,7 +478,7 @@ const char *psensor_type_to_unit_str(unsigned int type, int use_celcius)
        if (type & SENSOR_TYPE_CPU_USAGE)
                return _("%");
 
-       return "N/A";
+       return _("N/A");
 }
 
 void psensor_list_update_measures(struct psensor **sensors)