[I18n-sig] Re: default encoding as global state (was Re: Unicode debate)

Ka-Ping Yee ping@lfw.org
Wed, 3 May 2000 03:17:20 -0700 (PDT)


On Wed, 3 May 2000, Peter Funk wrote:
> 
> I think 'popenc' is a very poor name.

Yes, that's well taken.

> IMO this builtin stack model to deal with a global state is overkill and
> inconsistent with other already existing global states.  Look for example 
> at 'os.getcwd()' and 'os.chdir()'.  What about 'set_encoding()' and 
> 'get_encoding()'?  

It seems worthwhile to establish a safe convention if you're going
to be flipping encodings often.  Whether you do it often enough to
justify a stack is open to debate, i suppose -- but there's just
something about twiddling global state that makes me nervous.


-- ?!ng