This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]