`ls -l` command doesn't show year for every file in RHEL 7 or later with locale=ja_JP.utf8 which is different from RHEL 6

Solution Verified - Updated -

Issue

In RHEL 6 with locale=ja_JP.utf8, ls -l command shows year for all files.

[root@vm67 tmp]# ls -l
合計 0
-rw-r--r--. 1 root root 0 12月 16 09:04 2019 file1  
-rw-r--r--. 1 root root 0 11月 16 09:04 2019 file2
-rw-r--r--. 1 root root 0 10月 16 09:04 2019 file3
-rw-r--r--. 1 root root 0  9月 16 09:04 2019 file4
-rw-r--r--. 1 root root 0  8月 16 09:04 2019 file5
-rw-r--r--. 1 root root 0  7月 16 09:04 2019 file6
-rw-r--r--. 1 root root 0  6月 16 09:04 2019 file7
-rw-r--r--. 1 root root 0  1月 18 00:00 2020 test
[root@vm67 tmp]# 

However, the behavior is different in RHEL 7 or later.
In RHEL 7 with locale=ja_JP.utf8, ls -l command doesn't show year for every file.

[root@vm77 tmp]# ls -l
合計 0
-rw-r--r--. 1 root root 0 12月 17 18:19 file1
-rw-r--r--. 1 root root 0 11月 17 18:19 file2
-rw-r--r--. 1 root root 0 10月 17 18:19 file3
-rw-r--r--. 1 root root 0  9月 17 18:19 file4
-rw-r--r--. 1 root root 0  8月 17 18:19 file5
-rw-r--r--. 1 root root 0  7月 17  2019 file6
-rw-r--r--. 1 root root 0  6月 17  2019 file7
-rw-r--r--. 1 root root 0  1月 18 00:00 test
[root@vm77 tmp]# 

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 9
  • locale=ja_JP.utf8

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content