3
0

Accepting request 181184 from Base:System

- add gettext-fix-tcl-u-escape-sequences.patch in order to fix
  the handling of Tcl \u escape sequences (bnc#826422)

- add gettext-fix-tcl-u-escape-sequences.patch in order to fix
  the handling of Tcl \u escape sequences (bnc#826422) (forwarded request 181182 from gberh)

OBS-URL: https://build.opensuse.org/request/show/181184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gettext-runtime?expand=0&rev=48
This commit is contained in:
Stephan Kulow 2013-06-29 12:25:10 +00:00 committed by Git OBS Bridge
commit bd122f959b
5 changed files with 40 additions and 0 deletions

View File

@ -0,0 +1,24 @@
Index: gettext-0.18.2.1/gettext-tools/src/x-tcl.c
===================================================================
--- gettext-0.18.2.1.orig/gettext-tools/src/x-tcl.c
+++ gettext-0.18.2.1/gettext-tools/src/x-tcl.c
@@ -517,7 +517,10 @@ do_getc_escaped ()
{
c = phase1_getc ();
if (c == EOF || !c_isxdigit ((unsigned char) c))
- break;
+ {
+ phase1_ungetc (c);
+ break;
+ }
if (c >= '0' && c <= '9')
n = (n << 4) + (c - '0');
@@ -526,7 +529,6 @@ do_getc_escaped ()
else if (c >= 'a' && c <= 'f')
n = (n << 4) + (c - 'a' + 10);
}
- phase1_ungetc (c);
return (i > 0 ? n : 'u');
}
case '0': case '1': case '2': case '3': case '4':

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 25 09:09:00 UTC 2013 - gber@opensuse.org
- add gettext-fix-tcl-u-escape-sequences.patch in order to fix
the handling of Tcl \u escape sequences (bnc#826422)
-------------------------------------------------------------------
Wed Jun 19 08:12:19 UTC 2013 - coolo@suse.com

View File

@ -63,6 +63,7 @@ Patch4: gettext-po-mode.diff
Patch5: gettext-initialize_vars.patch
Patch9: gettext-needlessly_init_vars.patch
Patch10: gettext-configure.patch
Patch11: gettext-fix-tcl-u-escape-sequences.patch
%description
This package contains the intl library as well as tools that ease the
@ -109,6 +110,7 @@ binary catalogs.
%patch5
%patch9
%patch10 -p1
%patch11 -p1
%build
# expect a couple "You should update your `aclocal.m4' by running aclocal."

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 25 09:09:00 UTC 2013 - gber@opensuse.org
- add gettext-fix-tcl-u-escape-sequences.patch in order to fix
the handling of Tcl \u escape sequences (bnc#826422)
-------------------------------------------------------------------
Wed Jun 19 08:12:19 UTC 2013 - coolo@suse.com

View File

@ -63,6 +63,7 @@ Patch4: gettext-po-mode.diff
Patch5: gettext-initialize_vars.patch
Patch9: gettext-needlessly_init_vars.patch
Patch10: gettext-configure.patch
Patch11: gettext-fix-tcl-u-escape-sequences.patch
%description
This package contains the intl library as well as tools that ease the
@ -109,6 +110,7 @@ binary catalogs.
%patch5
%patch9
%patch10 -p1
%patch11 -p1
%build
# expect a couple "You should update your `aclocal.m4' by running aclocal."