Bazaar-NG traffic #2
Jan Hudec
bulb at ucw.cz
Thu Oct 13 08:38:05 BST 2005
On Wed, Oct 12, 2005 at 16:34:49 -0400, Aaron Bentley wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Robey Pointer wrote:
> >
> > I think if a filename comes back as a string instead of unicode, it's
> > because python couldn't decode it using the filesystem's encoding.
> > (AFAIK this is mostly a unix problem.*) In that case if you just
> > pretend the filename is in Latin-1, you will preserve the gibberish
> > filename: Latin-1 defines a unicode char for every possible byte 0-255,
> > so it's non-lossy. The gibberish filename can be reconstituted as the
> > same gibberish on the other end.
>
> Not necessarily. If it's extracted to a filesystem whose encoding is
> Latin-1, you will not get gibberish on the other end.
Either the name actually was in latin1, in which case you don't get
gibberish, or it was not and you will get gibberish anyway. Just on a
latin1 system it will be bytewise equal to the original. But remember,
that when you get gibberish, it was gibberish on the originating system
too.
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051013/dda3212e/attachment.pgp
More information about the bazaar
mailing list