Opened 9 years ago

Closed 8 years ago

#274 closed defect (fixed)

Accents !

Reported by: omamce Owned by: sdipsl
Priority: trivial Milestone: libIGCM_v2.8
Component: system Version: 2.0
Keywords: Cc:

Description

Hello,

Certains fichiers de libIGCM ont des caractères accentués de notre bon vieux français dans les commentaires. Par exemple, le mot Sébastien ! Ou le mot français ... Ca fait planter sed quand on veut générer de façon automatique une version bash de libIGCM.

Les fichiers concernés :

libIGCM_card/libIGCM_card.ksh
libIGCM_post/IGCM_Patch_20070220_histcom_time_axis.ksh
libIGCM_post/IGCM_Patch_20090407_histcom_time_axis.ksh
libIGCM_post/IGCM_Patch_20091030_histcom_time_axis.ksh
libIGCM_sys/libIGCM_sys_ada.ksh
libIGCM_sys/libIGCM_sys_iitm.ksh

Les mots concernés : Sébastien (mais pas toujours écrit avec l'accent ...), français, indéxées, différentes, même.

Pour l'instant je m'en sort avec perl, mais ça alourdit un peu la procédure :
perl -p -e 's/ S.*bastien / Sebastien /' infile > outfile

Olivier

Change History (3)

comment:1 Changed 9 years ago by sdipsl

Je n'ai pas de souci en générant du bash.

Sur quelle machine tu rencontres ca?

C'est quoi la valeur de ton $LC_LOCAL ? Tu pourrais essayer :

export LC_ALL="C"

comment:2 Changed 8 years ago by sdipsl

  • Owner changed from somebody to sdipsl
  • Status changed from new to assigned

comment:3 Changed 8 years ago by sdipsl

  • Milestone set to libIGCM_v2.8
  • Resolution set to fixed
  • Status changed from assigned to closed

Solution : export LC_ALL="C"

Note: See TracTickets for help on using tickets.