X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type; q=dns; s=default; b=nk6OQ
	+sTz9OydhlNwpjja1eCAn/fBTvRp6fhVcOOCcf0Cwt+GUfrgRigeiSQhqrUKYg0e
	zJWOfgAuqLMVkRbP/sYdaT9hiISfPlNokUneNVHVqdbGYx2vbVFYUhMVKBsBgfe7
	jxJyicUEFuVY/wWvAG3y+sx9CAg/DPch3yZ5XQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:in-reply-to
	:references:mime-version:content-type; s=default; bh=Y0jKk/K39mj
	OggSo2okinggR1fU=; b=KiU5CVQnEHBG1jX5m5HzdgzkGvbyFmqK0ZaSf+wX3Rz
	/7N1Mah7rxx5HS65lV37U5zqafZdTgABDOKqJWq+bxXi3bS0XMogqu4UARLgj92X
	/oBs5eAntnYX25Zo52jqK/ZDhpo2wRdYY2piEpywD9Q/MOyuD6X7J3K2V+obN9ME
	=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=AWL,BAYES_00,BODY_8BITS,GARBLED_BODY,RCVD_IN_DNSWL_NONE autolearn=no version=3.3.2 spammy=H*c:HHHH
X-HELO: conssluserg-06.nifty.com
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-06.nifty.com w5MKdGWV028074
X-Nifty-SrcIP: [125.3.30.127]
Date: Sat, 23 Jun 2018 05:39:27 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: Date field of ls -l command is garbled in latest cygwin1.dll snapshot.
Message-Id: <20180623053927.1e57462e18394d13c71cf3fd@nifty.ne.jp>
In-Reply-To: <20180623024737.95cb452e6e9541eb05393983@nifty.ne.jp>
References: <20180623024737.95cb452e6e9541eb05393983@nifty.ne.jp>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="Multipart=_Sat__23_Jun_2018_05_39_27_+0900_3mi=QsupRnQNv7C6"
X-IsSubscribed: yes

--Multipart=_Sat__23_Jun_2018_05_39_27_+0900_3mi=QsupRnQNv7C6
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

On Sat, 23 Jun 2018 02:47:37 +0900
Takashi Yano wrote:
> In the latest cygwin1.dll snapshot, the date field of "ls -l" command
> is garbled if LANG=ja_JP.UTF-8.

I looked into this problem, and found this is caused by incorrect
return value of iswprint().

A simple test case is attached.
The expected result of the test case is: 111111
However, in the latest snapshot, result is: 111000

I think Thomas can easily fix this.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

--Multipart=_Sat__23_Jun_2018_05_39_27_+0900_3mi=QsupRnQNv7C6
Content-Type: text/x-csrc;
 name="chk_iswprint.c"
Content-Disposition: attachment;
 filename="chk_iswprint.c"
Content-Transfer-Encoding: quoted-printable

#include <stdio.h>
#include <locale.h>
#include <wchar.h>
#include <wctype.h>

int main()
{
	wchar_t w[] =3D L"ABC=E6=97=A5=E6=9C=AC=E8=AA=9E";
	wchar_t *p;

	setlocale(LC_ALL, "ja_JP.UTF-8");
	for (p=3Dw; *p; p++) {
		printf("%d", iswprint(*p));
	}
	printf("\n");
	return 0;
}


--Multipart=_Sat__23_Jun_2018_05_39_27_+0900_3mi=QsupRnQNv7C6
Content-Type: text/plain; charset=us-ascii


--
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
--Multipart=_Sat__23_Jun_2018_05_39_27_+0900_3mi=QsupRnQNv7C6--
