From d8453b3d84ad32e3984467e4480612d9d46e4dc6 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Sun, 12 Oct 2014 22:54:29 +0400 Subject: [PATCH] forcer l'encoding pour sed --- fconv | 3 --- lib/ulib/base | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/fconv b/fconv index e4cbdf0..0c26e56 100755 --- a/fconv +++ b/fconv @@ -74,9 +74,6 @@ function before_parse_cmd() { OPTIMIZE_CONV= fi ;; - noaccents|noa|fixchars) - export LANG=fr_FR.UTF-8 - ;; esac } diff --git a/lib/ulib/base b/lib/ulib/base index 18bc2f4..b4ca65f 100644 --- a/lib/ulib/base +++ b/lib/ulib/base @@ -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