Error while starting Bazaar in the command shell (WinXP SP1)

Alexander Belchenko bialix at ukr.net
Thu Dec 14 10:13:36 GMT 2006


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

BigProf Software пишет:
> Hello,
> 
> Here is a full report of the error. This is the first run after
> installing Bazaar:
> 
> ========================================================
> bzr: ERROR: exceptions.LookupError: unknown encoding: cp720
> 
> Traceback (most recent call last):
>   File "bzrlib\commands.pyc", line 623, in run_bzr_catch_errors
>   File "bzrlib\commands.pyc", line 585, in run_bzr
>   File "bzrlib\commands.pyc", line 289, in run_argv_aliases
>   File "bzrlib\commands.pyc", line 255, in _setup_outf
>   File "codecs.pyc", line 752, in getwriter
> LookupError: unknown encoding: cp720
> 
> bzr 0.12.0 on python 2.4.4.final.0 (win32)
> arguments: ['C:\\Program Files\\Bazaar\\bzr.exe', 'help']
> 
> ** please send this report to bazaar-ng at lists.ubuntu.com
> ==========================================================
> 
> Additional info:
> =============
> OS: WinXP SP1
> Bazaar version: 0.12.0
> 
> Please let me know if you require any additional info.

Grrr.
It's related to recent problem with cp0.

Searching in google I found that cp720 is arabic OEM codepage.
Codec for this codepage is absent in standard python.

I found emacs-lisp script that related to this:
http://www.koders.com/lisp/fidDBF4E46FB3572478847661772FA06F779BF04A15.aspx
but I don't know is it possible to write corresponding
encoding table to extend python's standard set of codecs.
(I don't know el scripting language).

So we need to be a paranoid about encoding and explicitly check
that python could handle this correctly.

I'll prepare my full paranoid patch.

Alexander

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

iD8DBQFFgSPQzYr338mxwCURApmKAJ9KJbhPXM7wjXDcQS/vxCMwBZH+zgCfQSKy
1EPU+AY+FXbT46cwdlnOL68=
=okcD
-----END PGP SIGNATURE-----





More information about the bazaar mailing list