Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
francisation de la date pour ls (resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
ttgeub
Guru
Guru


Joined: 20 Jan 2003
Posts: 494
Location: Eindhoven

PostPosted: Thu May 29, 2003 10:27 am    Post subject: francisation de la date pour ls (resolu) Reply with quote

petit test

si l'on ne positionne pas LC_ALL alors on obtient avec ls -l toto.txt
-rw-r--r-- 1 philippe users 0 May 28 23:06 toto.txt

si l'on positionne LC_ALL à fr_FR ou fr_FR@euro on a :
-rw-r--r-- 1 philippe users 0 2003-05-28 23:06 toto.txt

alors que normalement on devrait avoir (exemple slackware) :
-rw-r--r-- 1 philippe users 0 mai 28 23:06 toto.txt

donc on ne peut pas positionner LC_ALL ce qui est particulierement genant pour differents types d'applications.
des idees ????

philippe


Last edited by ttgeub on Tue Jun 03, 2003 11:30 am; edited 1 time in total
Back to top
View user's profile Send private message
ttgeub
Guru
Guru


Joined: 20 Jan 2003
Posts: 494
Location: Eindhoven

PostPosted: Mon Jun 02, 2003 11:46 am    Post subject: Reply with quote

elle pu ma question ? Non mais c est une variable systeme importante LC_ALL, je suis tout de meme pas le seul a avoir le probleme !
Back to top
View user's profile Send private message
yuk159
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1802
Location: noumea ,nouvelle-caledonie

PostPosted: Mon Jun 02, 2003 7:17 pm    Post subject: Reply with quote

bin non elle pu pas mais je vois pas comment resoudre ce truc.
depuis que tu a pose la question je cherche mais j'ai beau essayer n'importe quoi j'en suis toujours au meme point.
je me demande meme si je cherche au bon endroit.

enfin bon voila si quelqu'un a la solution ca m'interresse aussi :D
en attendant bin je continu a chercher .

a+
_________________
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Tue Jun 03, 2003 10:15 am    Post subject: Reply with quote

Coucou,

Un petit ls --help te donne :
Quote:
--time-style=STYLE afficher les dates selon le STYLE désiré:
full-iso, long-iso, iso, locale, +FORMAT
FORMAT est interprété comme « date »; si FORMAT est
FORMAT1<retour de chariot>FORMAT2, FORMAT1 s'applique aux fichiers non récents et FORMAT2 aux fichiers récents

Donc un petit
Code:
ls -l --time-style=locale
par exemple, te donnera un résultat sous la forme :
Quote:
-rw-r--r-- 1 yoyo users 45432 mar 25 11:29
avec LC_ALL placé à fr_FR@euro.

Voili, voila ...
Back to top
View user's profile Send private message
ttgeub
Guru
Guru


Joined: 20 Jan 2003
Posts: 494
Location: Eindhoven

PostPosted: Tue Jun 03, 2003 11:29 am    Post subject: Reply with quote

Arrrghhh la honte ! C est pas ma faute c est pas dans la man page ! Bon ben merci je suis tout decu c etait trop simple

philippe
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Tue Jun 03, 2003 12:00 pm    Post subject: Reply with quote

ttypub wrote:
c etait trop simple

C'est comme pour l'oeuf de Christophe Colomb :
Il suffisait d'y penser :wink:
Back to top
View user's profile Send private message
arlequin
l33t
l33t


Joined: 16 Nov 2002
Posts: 707
Location: grep $USER /etc/passwd | cut -d':' -f6

PostPosted: Tue Jun 03, 2003 12:18 pm    Post subject: Reply with quote

Croa croa... oh, un corbeau :P
_________________
J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais.
Back to top
View user's profile Send private message
yuk159
Veteran
Veteran


Joined: 18 Apr 2003
Posts: 1802
Location: noumea ,nouvelle-caledonie

PostPosted: Wed Jun 04, 2003 2:09 am    Post subject: Reply with quote

merci :oops:
c'est vraiment la honte ;)
_________________
The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum