View previous topic :: View next topic |
Author |
Message |
ttgeub Guru
Joined: 20 Jan 2003 Posts: 494 Location: Eindhoven
|
Posted: Thu May 29, 2003 10:27 am Post subject: francisation de la date pour ls (resolu) |
|
|
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 |
|
|
ttgeub Guru
Joined: 20 Jan 2003 Posts: 494 Location: Eindhoven
|
Posted: Mon Jun 02, 2003 11:46 am Post subject: |
|
|
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 |
|
|
yuk159 Veteran
Joined: 18 Apr 2003 Posts: 1802 Location: noumea ,nouvelle-caledonie
|
Posted: Mon Jun 02, 2003 7:17 pm Post subject: |
|
|
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
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 |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Tue Jun 03, 2003 10:15 am Post subject: |
|
|
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 |
|
|
ttgeub Guru
Joined: 20 Jan 2003 Posts: 494 Location: Eindhoven
|
Posted: Tue Jun 03, 2003 11:29 am Post subject: |
|
|
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 |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Tue Jun 03, 2003 12:00 pm Post subject: |
|
|
ttypub wrote: | c etait trop simple |
C'est comme pour l'oeuf de Christophe Colomb :
Il suffisait d'y penser |
|
Back to top |
|
|
arlequin l33t
Joined: 16 Nov 2002 Posts: 707 Location: grep $USER /etc/passwd | cut -d':' -f6
|
Posted: Tue Jun 03, 2003 12:18 pm Post subject: |
|
|
Croa croa... oh, un corbeau _________________ J'vous dis ciao !
Au fait, ciao ça veut dire bye en anglais. |
|
Back to top |
|
|
yuk159 Veteran
Joined: 18 Apr 2003 Posts: 1802 Location: noumea ,nouvelle-caledonie
|
Posted: Wed Jun 04, 2003 2:09 am Post subject: |
|
|
merci
c'est vraiment la honte _________________ The box said: "Requires Windows 98/2000/XP/NT, or better."
So, I installed LINUX!
Instagram |
|
Back to top |
|
|
|