Re: glibc/gettext inconsistancy ? & local .mo problem
Santiago Vila wrote:
> Try this patch:
>
> --- orig.test.c Sat Apr 27 11:23:38 2002
> +++ test.c Sat Apr 27 11:23:54 2002
> @@ -1,10 +1,11 @@
> #include <libintl.h>
> #include <locale.h>
> #include <stdio.h>
>
> int main(){
> + setlocale (LC_ALL, "");
> bindtextdomain("test","");
> textdomain("test");
> printf(gettext("hello\n"));
> return 0;
> }
>
Your suggestion does not solve the problem (system trace follow).
In my earlier test I tried sequence bindtextdomain, textdomain, setlocale
without succes. I tried the order you suggest but I got nothing better...
open("/lib/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0H\222\1"..., 1024) =
1024
fstat64(3, {st_dev=makedev(33, 2), st_ino=156098, st_mode=S_IFREG|0755,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2264,
st_size=1153816, st_atime=2002/04/27-12:06:45, st_mtime=2002/03/24-18:00:40,
st_ctime=2002/04/26-12:19:06}) = 0
old_mmap(NULL, 1166592, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001e000
mprotect(0x40131000, 40192, PROT_NONE) = 0
old_mmap(0x40131000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x113000) = 0x40131000
old_mmap(0x40137000, 15616, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40137000
close(3) = 0
munmap(0x40014000, 39306) = 0
brk(0) = 0x80496d8
brk(0x8049700) = 0x8049700
brk(0x804a000) = 0x804a000
getcwd("/home/philippe", 4098) = 15
fstat64(1, {st_dev=makedev(0, 8), st_ino=6, st_mode=S_IFCHR|0620, st_nlink=1,
st_uid=1000, st_gid=5, st_blksize=1024, st_blocks=0, st_rdev=makedev(136, 4),
st_atime=2002/04/27-12:06:45, st_mtime=2002/04/27-12:06:45,
st_ctime=2002/04/27-12:05:05}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40014000
write(1, "hello\n", 6hello
) = 6
munmap(0x40014000, 4096) = 0
_exit(0) = ?
--
Philippe Ribet
The README file said
"Requires Windows 95, NT 4.0, or better."
So... I installed it on Linux!
--
To UNSUBSCRIBE, email to debian-testing-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: