0
0
mirror of https://github.com/openwrt/packages.git synced 2025-02-07 08:09:51 +00:00
packages/net/softethervpn/patches/103-noeucjp.patch
Philipp Schuster 34db38520b softethervpn: Update to rtm version 4.29-9680
Update SoftEther VPN to the latest rtm version 4.29-9680

Compile tested: Atheros AR7xxx/AR9xxx, TP-LINK Archer C7 v2, 18.06.4

Signed-off-by: Philipp Schuster <philippschuster@gmx.com>
(rebased and refreshed patches).
Signed-off-by: Rosen Penev <rosenp@gmail.com>
2019-07-19 23:17:52 -07:00

30 lines
822 B
Diff

--- a/src/Mayaqua/Internat.c
+++ b/src/Mayaqua/Internat.c
@@ -114,7 +114,7 @@
#include <Mayaqua/Mayaqua.h>
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;
@@ -929,7 +929,7 @@ void InitInternational()
#ifdef UNIX_MACOS
StrCpy(charset, sizeof(charset), "utf-8");
#else // UNIX_MACOS
- StrCpy(charset, sizeof(charset), "EUCJP");
+ StrCpy(charset, sizeof(charset), "utf-8");
#endif // UNIX_MACOS
d = IconvWideToStrInternal();
if (d == (void *)-1)
@@ -1189,7 +1189,7 @@ void GetCurrentCharSet(char *name, UINT
}
else
{
- StrCpy(name, size, "eucJP");
+ StrCpy(name, size, "utf-8");
}
}
FreeToken(t);