diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ChangeLog.ja | 5 | ||||
-rw-r--r-- | src/main.c | 14 |
3 files changed, 23 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-10-26 + + * src/main.c: win32: convert locale string to UTF-8 when setting + rc dir. + 2005-10-25 * src/messageview.c diff --git a/ChangeLog.ja b/ChangeLog.ja index e9c92a1e..94dd4b8c 100644 --- a/ChangeLog.ja +++ b/ChangeLog.ja @@ -1,3 +1,8 @@ +2005-10-26 + + * src/main.c: win32: rc dir を設定するときはロケール文字列を UTF-8 + に変換するようにした。 + 2005-10-25 * src/messageview.c @@ -340,8 +340,20 @@ static void parse_cmd_opt(int argc, char *argv[]) if (p && *p != '\0' && *p != '-') { /* this must only be done at startup */ - cmd.configdir = TRUE; +#ifdef G_OS_WIN32 + gchar *utf8dir; + + utf8dir = g_locale_to_utf8 + (p, -1, NULL, NULL, NULL); + if (utf8dir) { + set_rc_dir(utf8dir); + g_free(utf8dir); + } else + set_rc_dir(p); +#else set_rc_dir(p); +#endif + cmd.configdir = TRUE; i++; } } else if (!strncmp(argv[i], "--help", 6)) { |