Re: Japanese Display for gtk+-1.2.9



Hello,

Attach is the following logs from strace using locale C and locale ja_JP.eucJP.

I don't know what's wrong with the locale but ja_JP.eucJP is not originally build in our system. We are creating it using localedef command so that the error "GDK-Warning: locale not supported by library" will not exist anymore.

thanks vry much for your time mpsuzuki.


On 10/27/05, mpsuzuki hiroshima-u ac jp <mpsuzuki hiroshima-u ac jp > wrote:
On Thu, 27 Oct 2005 13:58:13 +0800
Xyber Blue < xyberblue gmail com> wrote:

>>>>Within my preparation, please install "strace" program onto
>>>>FR-V. It is a tool to trace all system calls from a process,
>>>>and useful to check which directories are scanned, which files
>>>>are checked, and which files are opened.
>We have strace in our FR-V. :-)
>
>Thanks very much and best regards.

Attached is a test program for locale in libc. Build as:

        $ gcc -o c_locale_test c_locale_test.c

Test for locale "C" will be
        $ ./c_locale_test.exe C
        set LC_CTYPE to C ...C
        mbstr="abc" includes 3 wide chars
        mbstr="日本語" is broken

Test for locale "ja_JP.eucJP" will be
        $ ./c_locale_test.exe ja_JP.eucJP
        set LC_CTYPE to ja_JP.eucJP ...ja_JP.eucJP
        mbstr="abc" includes 3 wide chars
        mbstr="日本語" includes 3 wide chars

Please test, especially for latter case.

# I've catched a cold, test for locale in X will be lated.



execve("./c_locale_test", ["./c_locale_test", "C"], [/* 23 vars */]) = 0
brk(0)                                  = 0x2208000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/opt/gtk-dillo2/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/gtk-dillo2/lib", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17101, ...}) = 0
mmap2(NULL, 17101, PROT_READ, MAP_PRIVATE, 3, 0) = 0x28000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3TA\0\0\0\1\0\1rP\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8937878, ...}) = 0
mmap2(0x2200000, 1345524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x30000
mmap2(0x16c000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x138) = 0x16c000
mmap2(0x178000, 2036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x178000
close(3)                                = 0
munmap(0x28000, 17101)                  = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, TCGETS, {B115200 opost isig icanon echo ...}) = 0
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x28000
write(1, "set LC_CTYPE to C ...C\n", 23set LC_CTYPE to C ...C
) = 23
write(1, "mbstr=\"abc\" includes 3 wide char"..., 34mbstr="abc" includes 3 wide chars
) = 34
write(1, "mbstr=\"\306\374\313\334\270\354\" is broken\n", 25mbstr="ÆüËܸì" is broken
) = 25
munmap(0x28000, 16384)                  = 0
exit_group(0)                           = ?
[root 180 root]#

strace ./c_locale_test Cja_JP.eucJP
execve("./c_locale_test", ["./c_locale_test", "ja_JP.eucJP"], [/* 23 vars */]) = 0
brk(0)                                  = 0x2208000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/opt/gtk-dillo2/lib/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or directory)
stat64("/opt/gtk-dillo2/lib", {st_mode=S_IFDIR|S_ISGID|0755, st_size=4096, ...}) = 0
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=17101, ...}) = 0
mmap2(NULL, 17101, PROT_READ, MAP_PRIVATE, 3, 0) = 0x28000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3TA\0\0\0\1\0\1rP\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=8937878, ...}) = 0
mmap2(0x2200000, 1345524, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x30000
mmap2(0x16c000, 49152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x138) = 0x16c000
mmap2(0x178000, 2036, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x178000
close(3)                                = 0
munmap(0x28000, 17101)                  = 0
fstat64(1, {st_mode=S_IFCHR|0600, st_rdev=makedev(4, 64), ...}) = 0
ioctl(1, TCGETS, {B115200 opost isig icanon echo ...}) = 0
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x28000
brk(0)                                  = 0x2208000
brk(0x222c000)                          = 0x222c000
brk(0)                                  = 0x222c000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=31042496, ...}) = 0
mmap2(NULL, 2097152, PROT_READ, MAP_PRIVATE, 3, 0) = 0x17c000
close(3)                                = 0
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=2586, ...}) = 0
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2c000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2c000, 16384)                  = 0
open("/usr/lib/locale/ja_JP.eucJP/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/locale/ja_JP.eucjp/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=479632, ...}) = 0
mmap2(NULL, 479632, PROT_READ, MAP_PRIVATE, 3, 0) = 0x37c000
close(3)                                = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=21040, ...}) = 0
mmap2(NULL, 21040, PROT_READ, MAP_SHARED, 3, 0) = 0x3f4000
close(3)                                = 0
munmap(0x3f4000, 21040)                 = 0
open("/usr/lib/gconv/gconv-modules", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0755, st_size=44643, ...}) = 0
mmap2(NULL, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2c000
read(3, "# GNU libc iconv configuration.\n"..., 4096) = 4096
read(3, ".B1.002//\nalias\tJS//\t\t\tJUS_I.B1."..., 4096) = 4096
read(3, "859-3\t1\nmodule\tINTERNAL\t\tISO-885"..., 4096) = 4096
read(3, "9-14//\nalias\tLATIN8//\t\tISO-8859-"..., 4096) = 4096
read(3, "st\nalias\tCSEBCDICESS//\t\tEBCDIC-E"..., 4096) = 4096
read(3, "\tINTERNAL\t\tIBM285\t\t1\nmodule\tINTE"..., 4096) = 4096
read(3, "ost\nalias\tCP866//\t\t\tIBM866//\nali"..., 4096) = 4096
read(3, "3//\t\tINTERNAL\t\tIBM943\t\t1\nmodule\t"..., 4096) = 4096
read(3, "odule\tEUC-CN//\t\tGBK//\t\t\tGBGBK\t\t1"..., 4096) = 4096
read(3, "\tANSI_X3.110\t1\nmodule\tINTERNAL\t\t"..., 4096) = 4096
read(3, "\tCSNATSDANO//\t\tNATS-DANO//\nalias"..., 4096) = 3683
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0x2c000, 16384)                  = 0
write(1, "set LC_CTYPE to ja_JP.eucJP ...j"..., 43set LC_CTYPE to ja_JP.eucJP ...ja_JP.eucJP
) = 43
open("/usr/lib/gconv/EUC-JP.so", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3TA\0\0\0\1\0\0\t`\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=33855, ...}) = 0
mmap2(0x2200000, 28304, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x3f4000
mmap2(0x3f8000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0x3f8000
close(3)                                = 0
open("/usr/lib/gconv/libJIS.so", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3TA\0\0\0\1\0\0\10\360"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=104566, ...}) = 0
mmap2(0x2200000, 113216, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x3fc000
mmap2(0x414000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x14) = 0x414000
close(3)                                = 0
write(1, "mbstr=\"abc\" includes 3 wide char"..., 34mbstr="abc" includes 3 wide chars
) = 34
write(1, "mbstr=\"\306\374\313\334\270\354\" includes 3 wide c"..., 37mbstr="ÆüËܸì" includes 3 wide chars
) = 37
munmap(0x28000, 16384)                  = 0
exit_group(0)                           = ?
[root 180 root]#



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]