forcer l'encoding pour sed

This commit is contained in:
Jephte CLAIN 2014-10-12 22:54:29 +04:00
parent 43bdecc08b
commit d8453b3d84
2 changed files with 2 additions and 5 deletions

3
fconv
View File

@ -74,9 +74,6 @@ function before_parse_cmd() {
OPTIMIZE_CONV=
fi
;;
noaccents|noa|fixchars)
export LANG=fr_FR.UTF-8
;;
esac
}

View File

@ -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