Problems with /usr/bin/date...

2007-12-25 9:36:00

Hello,

First I'd like to thank:

Kees Couprie

Casper Dik

Stephen Lee

Problem:

Incorrect day order in Portuguese and Brazilian locales

Solution I:

Installing Patch-ID# 107941-01 solves the problem

Solution II:

"Kees Couprie" came up with this solution:

You probably have LC_ALL or LC_TIME defines as pt_BR. There seams to be

a bug in in the file /usr/lib/locale/pt_BR/LC_TIME/time.

In /usr/lib/locale/${LC_TIME}/LC_TIME/time you can find translations for

all date and time related words. The order in which the names for the

dates are defined in this file, is "Sunday", "Monday" all the way up to

"Saturday".

For some reason, Sun messed up the Brazilian version of the time file,

but fortunately you can fix it yourself.

Edit the file /usr/lib/locale/pt_BR/LC_TIME/time and move the line "sáb"

behind the line "sex". Also move the line "sábado" behind the line

"Sexta-feira". Your date command should be fixed now.

I tried this on one of our own Solaris 2.6 systems. Before I fixed the

time file, it said:

 segunda-feira 14 março 2000, 08:14:46 EST

but after the fix the result is:

 terçai-feira 14 março 2000, 08:19:41 EST


--
''~``
( o o )
+------------------.oooO--(_)--Oooo.------------------+
|Ivan de Aquino xxx-21-574-6500 |
|xxx-21-574-6534 .oooO www.ciet.senai.br|
|Systems Admin ( ) Oooo. Rio de janeiro |
+---------------------\ (----( )--------------------+
(_) ) /
(_/

Comments

Got something to say?

You must be logged in to post a comment.