diff --git a/gettext-fix-octal-char-escape.patch b/gettext-fix-octal-char-escape.patch new file mode 100644 index 0000000..ac3fbff --- /dev/null +++ b/gettext-fix-octal-char-escape.patch @@ -0,0 +1,14 @@ +diff --git a/gettext-tools/src/x-c.c b/gettext-tools/src/x-c.c +index 479b8e8..a5978c9 100644 +--- a/gettext-tools/src/x-c.c ++++ b/gettext-tools/src/x-c.c +@@ -996,7 +996,8 @@ literalstring_parse (const char *string, lex_pos_ty *pos, + for (n = 0, j = 0; j < 3; ++j) + { + n = n * 8 + c - '0'; +- switch (*++p) ++ c = *++p; ++ switch (c) + { + default: + break; diff --git a/gettext.spec b/gettext.spec index c75877e..48a1310 100644 --- a/gettext.spec +++ b/gettext.spec @@ -6,13 +6,15 @@ Summary: GNU libraries and utilities for producing multi-lingual messages Name: gettext Version: 0.19.2 -Release: 3%{?dist} +Release: 4%{?dist} License: GPLv3+ and LGPLv2+ Group: Development/Tools URL: http://www.gnu.org/software/gettext/ Source: ftp://ftp.gnu.org/gnu/gettext/%{name}-%{version}.tar.xz Source2: msghack.py Source3: msghack.1 +# backport from upstream +Patch0: gettext-fix-octal-char-escape.patch # removal of openmp.m4 BuildRequires: autoconf >= 2.62 BuildRequires: automake @@ -134,6 +136,7 @@ Emacs. %prep %setup -q +%patch0 -p1 -b .fix-octal-char-escape.patch %build @@ -329,6 +332,9 @@ fi %{_emacs_sitelispdir}/%{name}/*.el %changelog +* Fri Oct 3 2014 Daiki Ueno - 0.19.2-4 +- apply patch to fix C octal character escape handling (Closes: #1147535) + * Tue Sep 02 2014 Dennis Gilmore - 0.19.2-3 - rebuild for libunistring soname bump