|
From: | anonymous |
Subject: | [bug-gettext] [bug #46756] xgettext 0.19.6 mangles C escapes; causes po file corruption |
Date: | Fri, 25 Dec 2015 16:53:27 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
URL: <http://savannah.gnu.org/bugs/?46756> Summary: xgettext 0.19.6 mangles C escapes; causes po file corruption Project: GNU gettext Submitted by: None Submitted on: Fri 25 Dec 2015 04:53:26 PM UTC Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: (also sent to mailing list) address@hidden ~/temp $ cat foo.c char *x = N_("Jean Br\xc3\xa9""fort"); address@hidden ~/temp $ cat POTFILES.in foo.c address@hidden ~/temp $ /usr/bin/xgettext --version xgettext (GNU gettext-tools) 0.18.3 [...] address@hidden ~/temp $ /usr/bin/xgettext --keyword=N_ "--add-comments" "--directory=." "--default-domain=foo" "--from-code=UTF-8" "--files-from=./POTFILES.in" address@hidden ~/temp $ grep Jean foo.po msgid "Jean Bréfort" ### That's "Jean Bre\'efort" in there. With 0.19.6 we get... address@hidden ~/temp $ xgettext --version xgettext (GNU gettext-tools) 0.19.6 [...] address@hidden ~/temp $ xgettext --keyword=N_ "--add-comments" "--directory=." "--default-domain=foo" "--from-code=UTF-8" "--files-from=./POTFILES.in" address@hidden ~/temp $ grep Jean foo.po msgid "Jean Brßort" ### Instead of et e' we now have a German double-s. And the f is gone. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?46756> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |