homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients lemburg, loewis, serhiy.storchaka
Date 2013年12月26日.21:43:12
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1875808.QJB8RMQZ2H@raxxla>
In-reply-to <52BC9AF6.2060303@egenix.com>
Content
> Could you add a test for the optimization function ?
I have no ideas. The optimization function is a part of the makelocalealias.py 
which ran manually very rarely (last time 3.5 year ago). It isn't exposed 
outside the script and I'm not sure that it worths the complication of the 
testing.
> It should make sure that a complete set of now removed locale
> names are properly optimized away, e.g.
> 
> 'nl_nl': 'nl_NL.ISO8859-1',
> - 'nl_nl.88591': 'nl_NL.ISO8859-1',
> - 'nl_nl.iso88591': 'nl_NL.ISO8859-1',
> - 'nl_nl.iso885915': 'nl_NL.ISO8859-15',
> - 'nl_nl.iso885915@euro': 'nl_NL.ISO8859-15',
> - 'nl_nl.utf8@euro': 'nl_NL.UTF-8',
> - 'nl_nl@euro': 'nl_NL.ISO8859-15',
These cases are covered by test_english and test_euro_modifier.
> 'ja_jp': 'ja_JP.eucJP',
> - 'ja_jp.ajec': 'ja_JP.eucJP',
> 'ja_jp.euc': 'ja_JP.eucJP',
> - 'ja_jp.eucjp': 'ja_JP.eucJP',
> - 'ja_jp.iso-2022-jp': 'ja_JP.JIS7',
> - 'ja_jp.iso2022jp': 'ja_JP.JIS7',
> - 'ja_jp.jis': 'ja_JP.JIS7',
> - 'ja_jp.jis7': 'ja_JP.JIS7',
> 'ja_jp.mscode': 'ja_JP.SJIS',
> 'ja_jp.pck': 'ja_JP.SJIS',
> - 'ja_jp.sjis': 'ja_JP.SJIS',
> - 'ja_jp.ujis': 'ja_JP.eucJP',
Here is a test which includes tests for japanese cases end tests for the euc 
encoding (it maps to different encodings depending on language).
Files
File name Uploaded
locale_optimize_aliases_3.patch serhiy.storchaka, 2013年12月26日.21:43:11
History
Date User Action Args
2013年12月26日 21:43:13serhiy.storchakasetrecipients: + serhiy.storchaka, lemburg, loewis
2013年12月26日 21:43:12serhiy.storchakalinkissue20046 messages
2013年12月26日 21:43:12serhiy.storchakacreate

AltStyle によって変換されたページ (->オリジナル) /