www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/05/12/09:28:00

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: <AANLkTim2nxVJS5qleVkgBAsTxXGEaKNdRz4-3l9Tbavj@mail.gmail.com>
Subject: 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
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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 <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 =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 <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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019