utf8 = is_locale_utf8();
vc_keymap = strdup("us");
- vc_font = strdup(DEFAULT_FONT);
- if (!vc_keymap || !vc_font) {
- log_error("Failed to allocate strings.");
+ if (!vc_keymap) {
+ log_error("Failed to allocate string.");
goto finish;
}
}
if (r <= 0) {
-#if defined(TARGET_FEDORA) || defined(TARGET_MEEGO)
+#if defined(TARGET_FEDORA)
r = parse_env_file("/etc/sysconfig/i18n", NEWLINE,
"SYSFONT", &vc_font,
"SYSFONTACM", &vc_font_map,
t = strdup("/etc/sysconfig/console/default.kmap");
if (!t) {
- log_error("Out of memory.");
+ log_oom();
goto finish;
}
free(vc_keytable);
if (!vc_keymap) {
- log_error("Out of memory.");
+ log_oom();
goto finish;
}
}
t = strdup("/etc/sysconfig/console/default.kmap");
if (!t) {
- log_error("Out of memory.");
+ log_oom();
goto finish;
}