Japanese codecs (was Re: [Python-Dev] PEP 263 -- Python Source Code Encoding)

M.-A. Lemburg mal@lemburg.com
Wed, 27 Feb 2002 21:33:58 +0100

"Barry A. Warsaw" wrote:
> >>>>> "MvL" == Martin v Loewis <martin@v.loewis.de> writes:
>     MvL> At the moment, declaring either eucJP or or Shift-JIS
>     MvL> wouldn't work with the proposed implementation, anyway, since
>     MvL> those encodings are not supported in the standard Python
>     MvL> installation.
> Which actually touches on something I wanted to bring up.  Why don't
> we include the Japanese codecs with Python?  Is it just a size issue?
> The gzip'd tarball of the JapaneseCodecs-1.4.3 is 258k, unpacked it's
> 3.2M.  Okay, so that's nontrivial, but I can think of 2 approaches:
> - Have a second, sumo (no pun intended) release that inclues the
>   codecs
> - Include the gzip'd tarball and do a distutils install at Python
>   install time

Why not simply make the installation a configure option ?

We could easily extend setup.py to grab the tarball from 
the web in case it is needed.
> I bet we'd win some Ruby converts if we did this <wink>.  For
> reference, I'm thinking about including the Japanese and Chinese
> codecs with MM2.1 because it makes little sense to claim support for
> those languages without them.


Marc-Andre Lemburg
CEO eGenix.com Software GmbH
Company & Consulting:                           http://www.egenix.com/
Python Software:                   http://www.egenix.com/files/python/