forcer l'encoding pour sed
This commit is contained in:
parent
43bdecc08b
commit
d8453b3d84
3
fconv
3
fconv
|
@ -74,9 +74,6 @@ function before_parse_cmd() {
|
|||
OPTIMIZE_CONV=
|
||||
fi
|
||||
;;
|
||||
noaccents|noa|fixchars)
|
||||
export LANG=fr_FR.UTF-8
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
|
|
|
@ -1148,8 +1148,8 @@ function nl2cr() {
|
|||
doinplace "$1" _nl2cr
|
||||
}
|
||||
function _noaccents() {
|
||||
# supprimer les accents du flux
|
||||
sed '
|
||||
# supprimer les accents d'un flux en UTF-8
|
||||
LANG=fr_FR.UTF-8 sed '
|
||||
s/[à]/a/g
|
||||
s/[éèêë]/e/g
|
||||
s/[ïî]/i/g
|
||||
|
|
Loading…
Reference in New Issue