On Thu, 12 Dec 2002 15:51:48 -0800

> I guess the problem is the difference of char-encoding naming
> convention: even among Posix-complient OSes, the naming of encodings
> are vender dependent (the situation is the same among RDBMS vendors).
> If I were to use Russian patch, I might put one abstraction in the
> char-encoding-name handling by providing some facilities like:

Probably you're right.
I do agree your approach bellow.

> def getDefaultPythonCharEncodingName():
>     if os.name == 'posix':
>         return charEncodingMap.get(locale.getlocale()[1], 'latin1')
>     else:  # For MS Windows
>        return os.environ.get('Z_CHAR_ENCODING', 'latin1')
> IANACharEncodingMap = {
>     'SJIS': 'Shift_JIS'
>     ...
> }
> Sooner or later, I think this kind of mechanism will be required
> for the mature support of Unicode, as Unicode brings a lot of
> this kind of problems. Without the rational addressing of such issues,
> the support of Unicode shouldn't be called mature I think.
> Still I don't like this patch's approach very much because
> this is the per-server-instance configuration, not useful
> for building M17N web site.

- per-server-instance configuration
- not useful for building M17N web site

I agree.

> > > 5) Toby's proposal
> Probably it's a preferable choice.
> My concern is I'm afraid if Toby is too busy to do that.

Yes, I'm also afraid so.
It's very difficult to provide a perfect solution.

> Since none of the choices(1-5) provide the perfect solution,
> all of them are just a temporary patch for the urgent fix of
> the severe issue (Collector 623).

As a temporary patch, 
3) TAHARA's patch:
     - need fix of some problems

It has some problems but easy to patch and start to use,
and also easy to remove after complete solution is provided.
If Toby will take some time, I will use 3) for a while.

But, if it takes a few months or longer,
I will try to modify Russian patch as an experiment,
maybe taking in your approach in some degree.
Is that bad idea?

> So, I think it shouldn't take too much time (we shouldn't spend
> too much time).

Maybe, we should separate the problem into temporary patch
and complete solution, if it takes much time.

Zope-Dev maillist  -  [EMAIL PROTECTED]
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope )

Reply via email to