Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Oct 2003 19:39:00 +0300
From:      "CBuH." <479001601@mail.ru>
To:        freebsd-questions@freeBSd.org
Subject:   ru_RU.KOI8-R/LC_TIME any standart??
Message-ID:  <200310261939.05966.479001601@mail.ru>

next in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Hi Q-s..

I've discovered today such a ``pretty'' thing:

=2E..but some history, first:
I am a student, and have ~/src and ~/stu dirs where I work. I have to bkup=
=20
these dirs, so I wrote a shell-script for bkp'n them, and so it creates a=20
date-formatted files: with a date format, including ``+%a''.

Till today I've not used localiz'n system,... and files where like:=20
backup1-work.20031026-Sun-18h14m.tar.gz

But today I ``setenv LANG ru_RU.KOI8-R'', and was fined anough read'n=20
familliar russian-localed messages, Till this hour....

I've cron to run my script every 2hr. And I recieve mails every this time.=
=20
Then, some min-s ago I wanted to hand-run this bkp script.. and hi writes m=
e=20
a mesg, where the file name was of two parts (separated by a space). And no=
=20
file were created.

I hd-ed the LC_TIME:
%hd /usr/share/locale/ru_RU.KOI8-R/LC_TIME
00000000  d1 ce d7 0a c6 c5 d7 0a  cd c1 d2 0a c1 d0 d2 0a  |=D1=CE=D7.=C6=
=C5=D7.=CD=C1=D2.=C1=D0=D2.|
00000010  cd c1 ca 0a c9 c0 ce 0a  c9 c0 cc 0a c1 d7 c7 0a  |=CD=C1=CA.=C9=
=C0=CE.=C9=C0=CC.=C1=D7=C7.|
00000020  d3 c5 ce 0a cf cb d4 0a  ce cf d1 0a c4 c5 cb 0a  |=D3=C5=CE.=CF=
=CB=D4.=CE=CF=D1.=C4=C5=CB.|
00000030  d1 ce d7 c1 d2 d1 0a c6  c5 d7 d2 c1 cc d1 0a cd  |=D1=CE=D7=C1=
=D2=D1.=C6=C5=D7=D2=C1=CC=D1.=CD|
00000040  c1 d2 d4 c1 0a c1 d0 d2  c5 cc d1 0a cd c1 d1 0a  |=C1=D2=D4=C1.=
=C1=D0=D2=C5=CC=D1.=CD=C1=D1.|
00000050  c9 c0 ce d1 0a c9 c0 cc  d1 0a c1 d7 c7 d5 d3 d4  |=C9=C0=CE=D1.=
=C9=C0=CC=D1.=C1=D7=C7=D5=D3=D4|
00000060  c1 0a d3 c5 ce d4 d1 c2  d2 d1 0a cf cb d4 d1 c2  |=C1.=D3=C5=CE=
=D4=D1=C2=D2=D1.=CF=CB=D4=D1=C2|
00000070  d2 d1 0a ce cf d1 c2 d2  d1 0a c4 c5 cb c1 c2 d2  |=D2=D1.=CE=CF=
=D1=C2=D2=D1.=C4=C5=CB=C1=C2=D2|
00000080  d1 0a d7 d3 20 0a d0 ce  20 0a d7 d4 20 0a d3 d2  |=D1.=D7=D3 .=
=D0=CE .=D7=D4 .=D3=D2|
00000090  20 0a de d4 20 0a d0 d4  20 0a d3 c2 20 0a d7 cf  | .=DE=D4 .=D0=
=D4 .=D3=C2 .=D7=CF|
000000a0  d3 cb d2 c5 d3 c5 ce d8  c5 0a d0 cf ce c5 c4 c5  |=D3=CB=D2=C5=
=D3=C5=CE=D8=C5.=D0=CF=CE=C5=C4=C5|
000000b0  cc d8 ce c9 cb 0a d7 d4  cf d2 ce c9 cb 0a d3 d2  |=CC=D8=CE=C9=
=CB.=D7=D4=CF=D2=CE=C9=CB.=D3=D2|
000000c0  c5 c4 c1 0a de c5 d4 d7  c5 d2 c7 0a d0 d1 d4 ce  |=C5=C4=C1.=DE=
=C5=D4=D7=C5=D2=C7.=D0=D1=D4=CE|
000000d0  c9 c3 c1 0a d3 d5 c2 c2  cf d4 c1 0a 25 48 3a 25  |=C9=C3=C1.=D3=
=D5=C2=C2=CF=D4=C1.%H:%|
000000e0  4d 3a 25 53 0a 25 64 2e  25 6d 2e 25 79 0a 25 61  |M:%S.%d.%m.%y.=
%a|
000000f0  20 25 65 20 25 62 20 25  58 20 25 59 0a 20 20 0a  | %e %b %X %Y. =
 .|
00000100  d0 d0 0a 25 61 20 25 65  20 25 62 20 25 59 20 25  |=D0=D0.%a %e %=
b %Y %|
00000110  58 20 25 5a 0a d1 ce d7  c1 d2 d8 0a c6 c5 d7 d2  |X %Z.=D1=CE=D7=
=C1=D2=D8.=C6=C5=D7=D2|
00000120  c1 cc d8 0a cd c1 d2 d4  0a c1 d0 d2 c5 cc d8 0a  |=C1=CC=D8.=CD=
=C1=D2=D4.=C1=D0=D2=C5=CC=D8.|
00000130  cd c1 ca 0a c9 c0 ce d8  0a c9 c0 cc d8 0a c1 d7  |=CD=C1=CA.=C9=
=C0=CE=D8.=C9=C0=CC=D8.=C1=D7|
00000140  c7 d5 d3 d4 0a d3 c5 ce  d4 d1 c2 d2 d8 0a cf cb  |=C7=D5=D3=D4.=
=D3=C5=CE=D4=D1=C2=D2=D8.=CF=CB|
00000150  d4 d1 c2 d2 d8 0a ce cf  d1 c2 d2 d8 0a c4 c5 cb  |=D4=D1=C2=D2=
=D8.=CE=CF=D1=C2=D2=D8.=C4=C5=CB|
00000160  c1 c2 d2 d8 0a 25 65 20  25 62 0a 25 65 20 25 42  |=C1=C2=D2=D8.%=
e %b.%e %B|
00000170  0a                                                |.|
00000171

You see this -- an extra ' ' in two-bytes' weekdays' abbreviature. In engli=
sh=20
locale it uses three bytes... and format'n the date command can make a=20
filename, but now -- I was forced to refuse the ``%a'' format.. It is now=20
issue for me. But I have it as an BiG issue in my bkup-system... because of=
=20
it!

Is there any standart on LC_TIME or ..... smth You can say me ``oposite''? =
:-)



If I'll be able -- I'll be glad to talk to the author of the LC_TIME for=20
ru_RU.KOI8-R ............. what hi _does_ think of this.



WBR, Sorry for m-b-ee rougth mesg, CBuH.



Lov'n surprizes P-)
=2D --=20

        CBuH. CG[CX] XVyGYjau 479001600@mail.ru, ICQ#70929413
	GnuPG(PGP) public key is: http://ccclike.chat.ru/my_public_key.asc

=09
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (FreeBSD)

iD8DBQE/m/ip5Cj3gqxcdCoRAm8RAKCAewB1riLv1n/JZzfEAL7XbLRh6ACfcjDZ
m0++EdiGerPKxguXsD11hRY=3D
=3DfdTW
=2D----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200310261939.05966.479001601>