Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Generalised String Coercion

Stephen J. Turnbullstephen at xemacs.org
Tue Aug 9 07:28:08 CEST 2005


>>>>> "Martin" == Martin v Löwis <martin at v.loewis.de> writes:    Martin> While this would work, it would still feel wrong: the    Martin> binary data are *not* latin1 (most likely), so declaring    Martin> them to be latin1 would be confusing. Perhaps a synonym    Martin> '8bit' for latin1 could be introduced.Be careful.  This alias has caused Emacs some amount of pain, asbinary data escapes into contexts (such as Universal Newlineprocessing) where it gets interpreted as character data.  We've alsohad some problems in codec implementation, because latin1 and (eg)latin9 have some differences in semantics other than changing thecoded character set for the GR register---controls are treateddifferently, for example, because they _are_ binary (alias latin1)octets, but not in the range of the latin9 code.I won't go so far as to say it won't work, but it will require carefuldesign.-- School of Systems and Information Engineeringhttp://turnbull.sk.tsukuba.ac.jpUniversity of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN               Ask not how you can "do" free software business;              ask what your business can "do for" free software.


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp