[Python-Dev] Unicode support in getargs.c
Martin v. Loewis
martin@v.loewis.de
Wed, 2 Jan 2002 20:20:38 +0100
> That's because the buffer interface on Unicode objects doesn't
> return the raw binary buffer. If you pass in a memory mapped
> file or a buffer object wrapping some memory area, u# will
> take the input as raw binary stream.
>> All this weird behaviour is needed to make Unicode objects
> behave well together with s#.
I don't believe this. Why would the implementation of u# have any
effect on making s# work?
> Jack will probably also need a way to say "decode this encoded
> object into Unicode using the encoding xyz". Something like the
> Unicode version of "es#". How about "eu#" which then passes through
> Unicode as-is while decoding all other objects according to the
> given encoding ?!
I'd like to see the requirements, in terms of real-world problems,
before considering any extensions.
Regards,
Martin