CVS migration help

John Arbash Meinel john at arbash-meinel.com
Tue Oct 7 16:52:45 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Manson wrote:
> in cvs2svn option file :
>  
> # You might want to be especially strict when converting filenames to
> # unicode (e.g., maybe not specify a fallback_encoding).
> ctx.cvs_filename_decoder = CVSTextDecoder(
>     [
>         'latin1',
>         #'utf8',
>         #'ascii',
>         ],
>     fallback_encoding='ascii'
>     )
> 
> I've added the ppa repositiory for ubuntu apt-get and update to 1.7.0.1
> <http://1.7.0.1> and will try again.
> Thomas
>  

I'll just mention that 'latin1' can never fail to decode a string. All
8-bit bytestrings have a valid Unicode decode from 'latin1', though
sometimes they will involve control characters. (Put another way,
'latin1' looks at one character at a time, and has all 256 mappings =>
unicode defined.)

UTF-8 can sometimes fail, because it uses multiple characters. Thus
every possible string is not valid in UTF-8.

ASCII can fail because it cannot map characters with the 8th bit set
(though I'll mention that anything in ASCII is identical in UTF-8).

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkjrhc0ACgkQJdeBCYSNAANUXwCfXOxfZuyv4SfvS+dBPEn2PSsL
TRYAoJ+bUFxV8CNvC/k111tMDR+MsJii
=71aG
-----END PGP SIGNATURE-----



More information about the bazaar mailing list