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= OPTIMIZE_CONV=
fi fi
;; ;;
noaccents|noa|fixchars)
export LANG=fr_FR.UTF-8
;;
esac esac
} }

View File

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