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 <[email protected]>
#include <stdio.h>
#include <locale.h>
#include <wchar.h>
#include <wctype.h>
int main()
{
wchar_t w[] = L"ABCæ¥æ¬èª";
wchar_t *p;
setlocale(LC_ALL, "ja_JP.UTF-8");
for (p=w; *p; p++) {
printf("%d", iswprint(*p));
}
printf("\n");
return 0;
}
--
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