+ /*
+ * Because currently initrd.img only has got the default English locale
+ * support, pretend for newtInit() it is actually the used LANG so Newt
+ * knows how to compute character widths etc.
+ **/
+ char *lang = strdup(getenv("LANG"));
getenv() can return NULL here, in which case we don't want to strdup() the
result.
+ setenv("LANG", LANG_DEFAULT, 1);
newtInit();
+ /* restore the original LANG value */
+ setenv("LANG", lang, 1);
+ free(lang);
+
newtCls();
newtDrawRootText(0, 0, buf);
free(buf);
@@ -319,7 +330,7 @@ char * getProductPath(void) {