Re: 32-bit rar archiver with libc6-i386 cannot convert filenames to utf8

2007-05-17 Thread Max Alekseyev

On 5/17/07, Max Alekseyev <[EMAIL PROTECTED]> wrote:

$ file /usr/lib/gconv/KOI8-R.so
/usr/lib/gconv/KOI8-R.so: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), for GNU/Linux 2.6.1, stripped

may inappropriate for a 32-bit program (which rar is).
Can this cause a trouble I am facing?


Running

GCONV_PATH=/usr/lib32/gconv   rar   whatever-arguments

solves the problem.
But now I wonder why GCONV_PATH is not set up automatically to the
correct value (i.e., to "/usr/lib32/gconv" instead of
"/usr/lib/gconv") for 32-bit programs.
Should not 32-bit subsystem take care of the variable GCONV_PATH ?
Does that mean a bug in the package libc6-i386 ?

Thanks,
Max


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 32-bit rar archiver with libc6-i386 cannot convert filenames to utf8

2007-05-17 Thread Max Alekseyev

On 5/16/07, Aaron M. Ucko <[EMAIL PROTECTED]> wrote:

"Max Alekseyev" <[EMAIL PROTECTED]> writes:

> If for some reason rar cannot convert filenames into utf8, it creates
> an archive only with filenames in the current locale encoding. And
> that exactly what happens with rar using libc6-i386 libraries. Under
> my debian-amd64 it creates archives only with filenames in koi8-r
> encoding (as my locale is ru_RU.KOI8-R) that are unreadable under MS
> Windows. What can possible prevent rar from converting filenames from
> koi8-r to utf8 (locale ru_RU.UTF-8 is also in my system)?

Perhaps it's looking for the gconv modules in the wrong place.  (You
can confirm this via strace.)


Under strace I've found out that rar is accessing /usr/lib/gconv/KOI8-R.so:

open("/usr/lib/gconv/KOI8-R.so", O_RDONLY) = 4

but its format:

$ file /usr/lib/gconv/KOI8-R.so
/usr/lib/gconv/KOI8-R.so: ELF 64-bit LSB shared object, x86-64,
version 1 (SYSV), for GNU/Linux 2.6.1, stripped

may inappropriate for a 32-bit program (which rar is).
Can this cause a trouble I am facing?
If so, how can it be fixed? Should I provide (and how?) a 32-bit
version of KOI8-R.so to rar?

Thanks,
Max


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 32-bit rar archiver with libc6-i386 cannot convert filenames to utf8

2007-05-16 Thread Aaron M. Ucko
"Max Alekseyev" <[EMAIL PROTECTED]> writes:

> If for some reason rar cannot convert filenames into utf8, it creates
> an archive only with filenames in the current locale encoding. And
> that exactly what happens with rar using libc6-i386 libraries. Under
> my debian-amd64 it creates archives only with filenames in koi8-r
> encoding (as my locale is ru_RU.KOI8-R) that are unreadable under MS
> Windows. What can possible prevent rar from converting filenames from
> koi8-r to utf8 (locale ru_RU.UTF-8 is also in my system)?

Perhaps it's looking for the gconv modules in the wrong place.  (You
can confirm this via strace.)

-- 
Aaron M. Ucko, KB1CJC (amu at alum.mit.edu, ucko at debian.org)
Finger [EMAIL PROTECTED] (NOT a valid e-mail address) for more info.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]