}
if (temp != -999)
{
- char *utf8;
char buf[256];
if (inst->units == FAHRENHEIT)
}
if (inst->units == FAHRENHEIT)
- snprintf(buf, sizeof(buf), "%i°F", temp);
+ snprintf(buf, sizeof(buf), "%i°F", temp);
else
- snprintf(buf, sizeof(buf), "%i°C", temp);
- utf8 = eina_str_convert("iso-8859-1", "utf-8", buf);
-
+ snprintf(buf, sizeof(buf), "%i°C", temp);
_temperature_face_level_set(inst,
(double)(temp - inst->low) /
(double)(inst->high - inst->low));
- edje_object_part_text_set(inst->o_temp, "e.text.reading", utf8);
- if (utf8) free(utf8);
+ edje_object_part_text_set(inst->o_temp, "e.text.reading", buf);
}
else
{