22 lines
837 B
Diff
22 lines
837 B
Diff
--- src/validate.c~ 2007-11-30 12:30:56.000000000 -0800
|
|
+++ src/validate.c 2007-11-30 12:52:01.000000000 -0800
|
|
@@ -453,7 +453,7 @@
|
|
void (*validate_type) (const char *value, const char *key, const char *locale, const char *filename, GnomeDesktopFile *df);
|
|
gboolean deprecated;
|
|
} key_table[] = {
|
|
- { "Encoding", validate_string },
|
|
+ { "Encoding", validate_string, TRUE },
|
|
{ "Version", validate_numeric },
|
|
{ "Name", validate_localestring },
|
|
{ "GenericName", validate_localestring },
|
|
@@ -735,10 +735,6 @@
|
|
strcmp (val, "Legacy-Mixed") != 0)
|
|
print_fatal (filename, "unknown Encoding type \"%s\", should be one of \"UTF-8\", \"Legacy-Mixed\"\n", val);
|
|
}
|
|
- else
|
|
- {
|
|
- print_fatal (filename, "required key \"Encoding\" not found\n");
|
|
- }
|
|
|
|
if (!gnome_desktop_file_get_raw (df, section,
|
|
"Name",
|