From 53097d2d56bffa6f4b4dad6c62b3e4824f214078 Mon Sep 17 00:00:00 2001 From: ELIN Date: Fri, 11 Mar 2016 11:56:35 +0000 Subject: [PATCH] default charset changed from EUC-JP to UTF-8. --- src/Mayaqua/Internat.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Mayaqua/Internat.c b/src/Mayaqua/Internat.c index fa7bad92..73e5a520 100644 --- a/src/Mayaqua/Internat.c +++ b/src/Mayaqua/Internat.c @@ -123,7 +123,7 @@ #include extern LOCK *token_lock; -static char charset[MAX_SIZE] = "EUCJP"; +static char charset[MAX_SIZE] = "UTF-8"; static LOCK *iconv_lock = NULL; void *iconv_cache_wide_to_str = 0; void *iconv_cache_str_to_wide = 0; @@ -935,11 +935,7 @@ void InitInternational() d = IconvWideToStrInternal(); if (d == (void *)-1) { -#ifdef UNIX_MACOS StrCpy(charset, sizeof(charset), "utf-8"); -#else // UNIX_MACOS - StrCpy(charset, sizeof(charset), "EUCJP"); -#endif // UNIX_MACOS d = IconvWideToStrInternal(); if (d == (void *)-1) { @@ -1198,7 +1194,7 @@ void GetCurrentCharSet(char *name, UINT size) } else { - StrCpy(name, size, "eucJP"); + StrCpy(name, size, "UTF-8"); } } FreeToken(t);