Steve Haslam <araqnid@debian.org> writes: F> [1 <multipart/mixed>] > > [1.1 <text/plain; iso-8859-1 (quoted-printable)>] > On Mon, May 31, 1999 at 09:46:25PM +0200, Torsten Landschoff wrote: > > On Mon, May 31, 1999 at 03:34:45AM +0100, Steve Haslam wrote: > > > Do other programs using gettext for i18n work OK? > > > > I did not use the LANG=german setting before - I prefer english menus. But > > when I tried it I got the same result. > > > > I would like to give you net access to this machine but sadly it is connected > > with an expensive dialup link :(( > > > > If I can help debugging this I would be glad to help out. > > Here is something for people having this problem to try... I'm > attaching test_i18n.c, a simplistic i18n test program. > > You should be able to compile it without any additional C flags or > libraries. And I get this result from it: > > bash$ LANG=de ./test_i18n > msgid: White on black > msgstr: Weiß auf schwarz > msgid: Reset and _Clear > msgstr: Reset and _Clear > > So, what do other people get? Can anyone get this program to misbehave? nothing: $ gcc test_i18n.c -o test_i18n $ ./test_i18n $ $ unset LC_ALL LANG $ ./test_i18n $ 8-(((((((((((( oder 8-) weil ein Fehler auftrat!? $ strace ./test_i18n execve("./test_i18n", ["./test_i18n"], [/* 20 vars */]) = 0 brk(0) = 0x8049700 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=16977, ...}) = 0 mmap(0, 16977, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=1170636, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 mmap(0, 994172, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000 mprotect(0x40105000, 31612, PROT_NONE) = 0 mmap(0x40105000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xea000) = 0x40105000 mmap(0x4010a000, 11132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4010a000 close(3) = 0 mprotect(0x4001a000, 962560, PROT_READ|PROT_WRITE) = 0 mprotect(0x4001a000, 962560, PROT_READ|PROT_EXEC) = 0 munmap(0x40015000, 16977) = 0 personality(PER_LINUX) = 0 getpid() = 24761 brk(0) = 0x8049700 brk(0x80498a0) = 0x80498a0 brk(0x804a000) = 0x804a000 _exit(0) = ? $ $ export LANG=de_DE $ strace ./test_i18n execve("./test_i18n", ["./test_i18n"], [/* 21 vars */]) = 0 brk(0) = 0x8049700 open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=16977, ...}) = 0 mmap(0, 16977, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40015000 close(3) = 0 open("/lib/libc.so.6", O_RDONLY) = 3 fstat(3, {st_mode=S_IFREG|0755, st_size=1170636, ...}) = 0 read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3"..., 4096) = 4096 mmap(0, 994172, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001a000 mprotect(0x40105000, 31612, PROT_NONE) = 0 mmap(0x40105000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xea000) = 0x40105000 mmap(0x4010a000, 11132, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x4010a000 close(3) = 0 mprotect(0x4001a000, 962560, PROT_READ|PROT_WRITE) = 0 mprotect(0x4001a000, 962560, PROT_READ|PROT_EXEC) = 0 munmap(0x40015000, 16977) = 0 personality(PER_LINUX) = 0 getpid() = 24775 brk(0) = 0x8049700 brk(0x80498a0) = 0x80498a0 brk(0x804a000) = 0x804a000 _exit(0) = ? I'm willing to do more tests ... but what tests!? Bye Christian -- Dipl.-Ing. Christian Leutloff, Aachen, Germany leutloff@sundancer.oche.de http://www.oche.de/~leutloff/ leutloff@debian.org Debian GNU/Linux - http://www.de.debian.org/
Attachment:
pgp7zAfi3cP3b.pgp
Description: PGP signature