bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: uuencode: multi-bytes char in remote file name contains bytes >0x80


From: Bruno Haible
Subject: Re: uuencode: multi-bytes char in remote file name contains bytes >0x80
Date: Sat, 9 Jul 2011 01:52:11 +0200
User-agent: KMail/1.9.9

Bruce Korb wrote:
> I'd have this wired just as soon as I could figure out what
> string to pass to iconv_open(3p).  Pointers certainly appreciated!

This would be locale_charset () from the gnulib module 'localcharset'.

Additionally, instead of doing the iconv() calls yourself - the error
handling can be complicated - you could make use of a "streaming iconv",
that is, an stream that is based on another stream and does an iconv()
conversion loop on the fly.

For output streams, this exists in gettext [1][2]; for input stream
it should work in a similar way.

Bruno

[1] 
http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob_plain;f=gnulib-local/lib/iconv-ostream.oo.h;hb=HEAD
[2] 
http://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob_plain;f=gnulib-local/lib/iconv-ostream.oo.c;hb=HEAD
-- 
In memoriam Jean Moulin <http://en.wikipedia.org/wiki/Jean_Moulin>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]