mirror of
https://github.com/openharmony/third_party_gettext.git
synced 2026-07-19 21:26:06 -04:00
tests: Avoid sed error on Mac OS X when dealing with binary input
Reported by Ramsey Dow in: <http://lists.gnu.org/archive/html/bug-gettext/2014-07/msg00002.html>. * msgmerge-compendium-6: Run sed with LC_ALL=C, to avoid 'illegal byte sequence' error on Mac OS X. * format-sh-1: Likewise.
This commit is contained in:
@@ -1,3 +1,12 @@
|
||||
2014-10-12 Daiki Ueno <ueno@gnu.org>
|
||||
|
||||
tests: Avoid sed error on Mac OS X when dealing with binary input
|
||||
Reported by Ramsey Dow in:
|
||||
<http://lists.gnu.org/archive/html/bug-gettext/2014-07/msg00002.html>.
|
||||
* msgmerge-compendium-6: Run sed with LC_ALL=C, to avoid 'illegal
|
||||
byte sequence' error on Mac OS X.
|
||||
* format-sh-1: Likewise.
|
||||
|
||||
2014-10-10 Daiki Ueno <ueno@gnu.org>
|
||||
|
||||
tests: Add test for Debian bug#764580
|
||||
|
||||
@@ -37,7 +37,7 @@ n=0
|
||||
while read comment; do
|
||||
read string
|
||||
n=`expr $n + 1`
|
||||
sed -e 's,\$,\\$,g' <<EOF > f-sh-1-$n.in
|
||||
LC_ALL=C sed -e 's,\$,\\$,g' <<EOF > f-sh-1-$n.in
|
||||
gettext ${string};
|
||||
EOF
|
||||
${XGETTEXT} -L Shell --from-code=ISO-8859-1 -o f-sh-1-$n.po f-sh-1-$n.in || exit 1
|
||||
|
||||
@@ -66,7 +66,7 @@ LC_ALL=C tr -d '\r' < mm-c-6-UUU.tmp > mm-c-6-UUU.out || exit 1
|
||||
|
||||
: ${MSGCONV=msgconv}
|
||||
${MSGCONV} --to-code=UTF-8 mm-c-6-UUU.out | LC_ALL=C tr -d '\r' > mm-c-6-U.ok
|
||||
${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | sed -e 's,EUC-KR,euc-kr,' | LC_ALL=C tr -d '\r' > mm-c-6-E.ok
|
||||
${MSGCONV} --to-code=EUC-KR mm-c-6-UUU.out | LC_ALL=C sed -e 's,EUC-KR,euc-kr,' | LC_ALL=C tr -d '\r' > mm-c-6-E.ok
|
||||
|
||||
: ${DIFF=diff}
|
||||
${DIFF} mm-c-6-E.ok mm-c-6-AEE.out || { exit 1; }
|
||||
|
||||
Reference in New Issue
Block a user