From: Jean-Philippe Orsini Date: Fri, 27 Apr 2012 19:53:04 +0000 (+0000) Subject: encodes (as octal) the degree sign because gettext does not support extended ascii X-Git-Tag: v0.8.0.5~391 X-Git-Url: https://git.wpitchoune.net/gitweb/?p=psensor.git;a=commitdiff_plain;h=f240b18344b1ce1dc674120383b5c7de9dc03a97 encodes (as octal) the degree sign because gettext does not support extended ascii --- diff --git a/src/lib/psensor.c b/src/lib/psensor.c index f69c6d2..ab54c6c 100644 --- a/src/lib/psensor.c +++ b/src/lib/psensor.c @@ -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)