This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Please support CP932. (I have problem using subversion with SJIS)
Pardon me. I forgot to attach my patch.
2010/1/23 Nayuta Taga <ganaware@gmail.com>:
> Please support CP932. ?Because CP932 is not equal to SJIS, I have
> problem using subversion when LANG=ja_JP.SJIS . ?With the attached
> patch and LANG=ja_JP.CP932, I can use subversion as expected.
Index: newlib/libc/locale/locale.c
===================================================================
RCS file: /cvs/src/src/newlib/libc/locale/locale.c,v
retrieving revision 1.33
diff -u -p -r1.33 locale.c
--- newlib/libc/locale/locale.c 22 Jan 2010 13:03:42 -0000 1.33
+++ newlib/libc/locale/locale.c 23 Jan 2010 03:59:48 -0000
@@ -659,6 +659,13 @@ loadlocale(struct _reent *p, int categor
#endif /* _MB_EXTENDED_CHARSETS_WINDOWS */
#endif
break;
+ case 932:
+ mbc_max = 2;
+#ifdef _MB_CAPABLE
+ l_wctomb = __sjis_wctomb;
+ l_mbtowc = __sjis_mbtowc;
+#endif
+ break;
default:
return NULL;
}
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple