Ineiev <[email protected]> writes: >> s/\ >> // > > Won't s/\n// work?
Right, it seems to work and probably portable (according to the Autoconf manual I quoted and SUSv3). I've pushed a fix it in that way. Thanks! Regards, -- Daiki Ueno
>From ae7b0f726f5843396431173e65937b4523abae17 Mon Sep 17 00:00:00 2001 From: Daiki Ueno <[email protected]> Date: Fri, 3 May 2013 21:58:59 +0900 Subject: [PATCH] Don't use non-portable character escape in user-email script. --- gettext-tools/src/ChangeLog | 8 ++++++++ gettext-tools/src/user-email.sh.in | 3 +-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gettext-tools/src/ChangeLog b/gettext-tools/src/ChangeLog index 5861f73..7ff1136 100644 --- a/gettext-tools/src/ChangeLog +++ b/gettext-tools/src/ChangeLog @@ -1,3 +1,11 @@ +2013-05-03 Daiki Ueno <[email protected]> + + * user-email.sh.in (lowercase_sed): Don't use non-portable + character escape in sed 's' command. + Reported by Ben Fox-Moore in + <http://lists.gnu.org/archive/html/bug-gettext/2013-05/msg00003.html> + and thanks to Ineiev for the suggestion. + 2013-04-26 Daiki Ueno <[email protected]> Support for Python brace format. diff --git a/gettext-tools/src/user-email.sh.in b/gettext-tools/src/user-email.sh.in index 4486bbe..5a35405 100644 --- a/gettext-tools/src/user-email.sh.in +++ b/gettext-tools/src/user-email.sh.in @@ -324,8 +324,7 @@ y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ x s/^\([^@]*\)@.*/\1@/ G -s/\ -// +s/\n// p }' naddresses="" -- 1.7.10.4
