From owner-freebsd-bugs Tue Sep 24 23:50:05 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA06393 for bugs-outgoing; Tue, 24 Sep 1996 23:50:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA06357; Tue, 24 Sep 1996 23:50:02 -0700 (PDT) Resent-Date: Tue, 24 Sep 1996 23:50:02 -0700 (PDT) Resent-Message-Id: <199609250650.XAA06357@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, zgabor@code.hu Received: from mail.EUnet.hu (mail.eunet.hu [193.225.28.100]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id XAA01537 for ; Tue, 24 Sep 1996 23:44:11 -0700 (PDT) Received: by mail.EUnet.hu, id IAA14729; Wed, 25 Sep 1996 08:44:08 +0200 Received: from zg.CoDe.hu by CoDe.CoDe.hu (QAA05027); Tue, 24 Sep 1996 16:52:46 GMT Received: (from zgabor@localhost) by zg.CoDe.hu (8.6.12/8.6.12) id RAA01163; Tue, 24 Sep 1996 17:33:02 +0200 Message-Id: <199609241533.RAA01163@zg.CoDe.hu> Date: Tue, 24 Sep 1996 17:33:02 +0200 From: Zahemszky Gabor Reply-To: zgabor@code.hu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/1678: ls(1) with LC_TIME Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Number: 1678 >Category: bin >Synopsis: ls(1) with LC_TIME >Confidential: yes >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Sep 24 23:50:01 PDT 1996 >Last-Modified: >Originator: Zahemszky Gabor >Organization: >Release: FreeBSD 2.1.0-RELEASE i386 >Environment: >Description: I made an LC_TIME file on some of the locale's directory, export ENABLE_STARTUP_LOCALE, and tried it. It's ok. But ls -l has wrong output in the date field. I've looked into the sources, and it has hardwired the size and POSITION of the fields (it doesn't write the month, instead of write from eg position 3 to position 7 from the localtime string). >How-To-Repeat: Get an LC_TIME file from -current, delete the comment lines, and change the record which says the format of the local time, eg not: Tue Sep 24 17:31:28 MET DST 1996 but 1996 Szep 24 Ke 17:31:28 MET export ENABLE_STARTUP_LOCALE, export the new LANG (or LC_TIME), and make an ls -l. >Fix: >Audit-Trail: >Unformatted: