X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_SUB_PCT_LETTER,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Date: Wed, 12 May 2010 22:27:45 +0900 Message-ID: Subject: strftime %b is broken on ja_JP locale From: IWAMURO Motonori To: cygwin AT cygwin DOT com, newlib AT sourceware DOT org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Hi. strftime %b is broken on ja_JP locale on cygwin-1.7.5-1. [monthtest.c] -------- #include #include #include int main(void) { time_t now; struct tm *tm; char buffer[4096]; setlocale(LC_ALL, "ja_JP.UTF-8"); time(&now); tm =3D localtime(&now); strftime(buffer, sizeof(buffer), "[%B][%b]\n", tm); puts(buffer); return 0; } -------- - result on Cygwin: [5=E6=9C=88][5] - missing suffix "=E6=9C=88" (U+6708). - result on Debian lenny: [5=E6=9C=88][ 5=E6=9C=88] --=20 IWAMURO Motnori -- 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