coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Question regarding ls output for Japanese locale (missing "day" Kanji)


From: henkelman77
Subject: Question regarding ls output for Japanese locale (missing "day" Kanji)
Date: Wed, 2 Jun 2021 16:39:57 +0900 (JST)

Hi,

I see an unexpected result when listing files with GNU ls and Japanese locale.
The Japanese character for day (日) is missing.

Expected result - same as UNIX (Solaris 10 for example):
-bash-3.2$ LANG=ja_JP.UTF-8 ls -ld /etc
drwxr-xr-x  81 root     sys         5120  5月 24日  15:19 /etc

Actual result:

Solaris with gnu ls provided by csw
-bash-3.2$ /opt/csw/bin/gls --version
ls (GNU coreutils) 8.22
-bash-3.2$ LANG=ja_JP.UTF-8 /opt/csw/bin/gls -ld /etc
drwxr-xr-x 81 root sys 5120  5月 24 15:19 /etc


Same for Linux (Ubuntu 20.04 - ls (GNU coreutils) 8.30 )
> LANG=ja_JP.utf8 ls -ld /etc
drwxr-xr-x 139 root root 12288  5月 29 06:17 /etc


The same seems to apply for Chinese as well:
> LANG=zh_TW.utf8 ls -ld /etc
drwxr-xr-x. 107 root root 8192  5月 28 20:29 /etc

> LANG=zh_CN.utf8 ls -ld /etc
drwxr-xr-x. 107 root root 8192 5月  28 20:29 /etc


It seems strange to me, because the character for month (月) is printed, but the 
one for day (日) is missing.

​Is this a bug or am I doing something wrong?


Cheers,
Bjoern



reply via email to

[Prev in Thread] Current Thread [Next in Thread]