[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[PATCH 02/36] localedata: sort SUPPORTED to list UTF-8 locales first



From: Denis Barbier <bouzim@gmail.com>
Date: Tue, 6 Jan 2009 14:49:46 -0600

UTF-8 is now ready for use as the default character set in Debian.
Most other major distributions (e.g. RedHat, SuSE) switched to
UTF-8 last year, if not before.  We should seriously consider doing
the same.

The current locale package allows one to choose the locales to generate
using debconf, and takes the list from i18n/SUPPORTED.  I don't for one
moment propose to drop any supported locales.  The following patch
reorders SUPPORTED.

However, I don't know it's nice idea to put all UTF-8 locales at the
top.  Actually many users have not switched to UTF-8 yet, so they want
to select both UTF-8 and obsolete charsets at the same time.  So,
instead, I would like to change as follows:

  - The current order of SUPPORTED list (appeared at the first screen
    of dpkg-reconfigure locales) is for example:

	iw_IL ISO-8859-8
	iw_IL.UTF-8 UTF-8
	ja_JP.EUC-JP EUC-JP
	ja_JP.UTF-8 UTF-8

    But the new order of SUPPORTED list is for example:

	iw_IL.UTF-8 UTF-8
	iw_IL ISO-8859-8
	ja_JP.UTF-8 UTF-8
	ja_JP.EUC-JP EUC-JP

This change partly solves #312927.

Originally from glibc 2.3.6-1, 2006-01-18.

[clint@debian.org, 2007-10-23: put zh_TW.EUC-TW after BIG5]
[aurelien@aurel32.net, 2009-01-06: put zh_TW.EUC-TW before BIG5 again]

Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
---
 localedata/SUPPORTED |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/localedata/SUPPORTED b/localedata/SUPPORTED
index d665961..b15030b 100644
--- a/localedata/SUPPORTED
+++ b/localedata/SUPPORTED
@@ -227,8 +227,8 @@ hi_IN/UTF-8 \
 hne_IN/UTF-8 \
 hr_HR.UTF-8/UTF-8 \
 hr_HR/ISO-8859-2 \
-hsb_DE/ISO-8859-2 \
 hsb_DE.UTF-8/UTF-8 \
+hsb_DE/ISO-8859-2 \
 ht_HT/UTF-8 \
 hu_HU.UT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