[patch] fix issues in some locales with using a-z

Mike Frysinger vapier@gentoo.org
Fri Jun 23 00:06:00 GMT 2006


hmm, lets try this again but with a patch that doesnt break Makefile.in

a bunch of files in gdb use a-z in sed expressions without forcing the locale 
to c ... in some locales, this can cause some pretty "fun" results:

(observer.sh)
In file included from solib.c:47:
observer.h:35: error: stray '@' in program
observer.h:35: error: expected ')' before 'deftypefun'

(Makefile.in:init.c)
libgdb.a(init.o): In function `initialize_all_files':
init.c:(.text+0xa): undefined reference to `_initialize_amd64_lin'
init.c:(.text+0xf): undefined reference to `_initialize_i386_'

i've fixed this issue in the Makefile.in, gdb_indent.sh, gdb_mbuild,sh, and 
observer.sh files the same way that gdbarch.sh was fixed oh-so-long ago 
rather than the over-the-top way that autoconf does it (see the top of 
gdb/configure under "NLS nuisances" to see what i mean)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060623/948ea130/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gdb-locale.patch
Type: text/x-diff
Size: 1439 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060623/948ea130/attachment.bin>


More information about the Gdb-patches mailing list