103-noeucjp.patch 822 B

1234567891011121314151617181920212223242526272829
  1. --- a/src/Mayaqua/Internat.c
  2. +++ b/src/Mayaqua/Internat.c
  3. @@ -123,7 +123,7 @@
  4. #include <Mayaqua/Mayaqua.h>
  5. extern LOCK *token_lock;
  6. -static char charset[MAX_SIZE] = "EUCJP";
  7. +static char charset[MAX_SIZE] = "utf-8";
  8. static LOCK *iconv_lock = NULL;
  9. void *iconv_cache_wide_to_str = 0;
  10. void *iconv_cache_str_to_wide = 0;
  11. @@ -938,7 +938,7 @@ void InitInternational()
  12. #ifdef UNIX_MACOS
  13. StrCpy(charset, sizeof(charset), "utf-8");
  14. #else // UNIX_MACOS
  15. - StrCpy(charset, sizeof(charset), "EUCJP");
  16. + StrCpy(charset, sizeof(charset), "utf-8");
  17. #endif // UNIX_MACOS
  18. d = IconvWideToStrInternal();
  19. if (d == (void *)-1)
  20. @@ -1198,7 +1198,7 @@ void GetCurrentCharSet(char *name, UINT
  21. }
  22. else
  23. {
  24. - StrCpy(name, size, "eucJP");
  25. + StrCpy(name, size, "utf-8");
  26. }
  27. }
  28. FreeToken(t);