1
0

Accepting request 181182 from home:gberh:branches: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)

OBS-URL: https://build.opensuse.org/request/show/181182
OBS-URL: https://build.opensuse.org/package/show/Base:System/gettext-runtime?expand=0&rev=81
This commit is contained in:
Philipp Thomas 2013-06-27 15:24:47 +00:00 committed by Git OBS Bridge
parent 5e041d2313
commit 3e6c59df18
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."