From: Carsten Haitzler Date: Thu, 20 May 2010 09:19:26 +0000 (+0000) Subject: make src utf8. X-Git-Tag: submit/efl/20131021.015651~7412 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=136c1216dcae30645fcd86afbfd6e480c222771b;p=platform%2Fupstream%2Fenlightenment.git make src utf8. SVN revision: 49060 --- diff --git a/src/modules/temperature/e_mod_main.c b/src/modules/temperature/e_mod_main.c index a67ba63..e75884f 100644 --- a/src/modules/temperature/e_mod_main.c +++ b/src/modules/temperature/e_mod_main.c @@ -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 {