This is the mail archive of the
cygwin
mailing list for the Cygwin project.
strftime %b is broken on ja_JP locale
- From: IWAMURO Motonori <deenheart at gmail dot com>
- To: cygwin at cygwin dot com, newlib at sourceware dot org
- Date: Wed, 12 May 2010 22:27:45 +0900
- Subject: strftime %b is broken on ja_JP locale
Hi.
strftime %b is broken on ja_JP locale on cygwin-1.7.5-1.
[monthtest.c]
--------
#include <stdio.h>
#include <time.h>
#include <locale.h>
int main(void) {
time_t now;
struct tm *tm;
char buffer[4096];
setlocale(LC_ALL, "ja_JP.UTF-8");
time(&now);
tm = localtime(&now);
strftime(buffer, sizeof(buffer), "[%B][%b]\n", tm);
puts(buffer);
return 0;
}
--------
- result on Cygwin: [5æ][5] - missing suffix "æ" (U+6708).
- result on Debian lenny: [5æ][ 5æ]
--
IWAMURO Motnori <http://vmi.jp/>
--
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