summaryrefslogtreecommitdiff
path: root/chinese/unrar/files/patch-unicode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/unrar/files/patch-unicode.cpp')
-rw-r--r--chinese/unrar/files/patch-unicode.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/chinese/unrar/files/patch-unicode.cpp b/chinese/unrar/files/patch-unicode.cpp
new file mode 100644
index 000000000000..9bd86779924a
--- /dev/null
+++ b/chinese/unrar/files/patch-unicode.cpp
@@ -0,0 +1,18 @@
+--- unicode.cpp.orig Sun Aug 1 01:54:23 2004
++++ unicode.cpp Sun Aug 1 01:54:56 2004
+@@ -2,6 +2,7 @@
+
+ void WideToChar(const wchar *Src,char *Dest,int DestSize)
+ {
++#if 0 /* patch for chinese filename */
+ #ifdef _WIN_32
+ WideCharToMultiByte(CP_ACP,0,Src,-1,Dest,DestSize,NULL,NULL);
+ #else
+@@ -18,6 +19,7 @@
+ if (Src[I]==0)
+ break;
+ }
++#endif
+ #endif
+ #endif
+ #endif