X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 23 Jan 2010 14:58:56 +0900 Message-ID: Subject: Re: Please support CP932. (I have problem using subversion with SJIS) From: Nayuta Taga To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Pardon me. I forgot to attach my patch. 2010/1/23 Nayuta Taga : > Please support CP932. =A0Because CP932 is not equal to SJIS, I have > problem using subversion when LANG=3Dja_JP.SJIS . =A0With the attached > patch and LANG=3Dja_JP.CP932, I can use subversion as expected. Index: newlib/libc/locale/locale.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D 2; +#ifdef _MB_CAPABLE + l_wctomb =3D __sjis_wctomb; + l_mbtowc =3D __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