lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

103-noeucjp.patch (822B)


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