make src utf8.

SVN revision: 49060
This commit is contained in:
Carsten Haitzler 2010-05-20 09:19:26 +00:00
parent 4310f32263
commit 136c1216dc
1 changed files with 3 additions and 7 deletions

View File

@ -202,7 +202,6 @@ _temperature_cb_exe_data(void *data, int type, void *event)
}
if (temp != -999)
{
char *utf8;
char buf[256];
if (inst->units == FAHRENHEIT)
@ -216,16 +215,13 @@ _temperature_cb_exe_data(void *data, int type, void *event)
}
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
{