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=
|
OPTIMIZE_CONV=
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
noaccents|noa|fixchars)
|
|
||||||
export LANG=fr_FR.UTF-8
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1148,8 +1148,8 @@ function nl2cr() {
|
||||||
doinplace "$1" _nl2cr
|
doinplace "$1" _nl2cr
|
||||||
}
|
}
|
||||||
function _noaccents() {
|
function _noaccents() {
|
||||||
# supprimer les accents du flux
|
# supprimer les accents d'un flux en UTF-8
|
||||||
sed '
|
LANG=fr_FR.UTF-8 sed '
|
||||||
s/[à]/a/g
|
s/[à]/a/g
|
||||||
s/[éèêë]/e/g
|
s/[éèêë]/e/g
|
||||||
s/[ïî]/i/g
|
s/[ïî]/i/g
|
||||||
|
|
Loading…
Reference in New Issue