--- langpack-locales-2.9+cvs20090214.orig/debian/rules +++ langpack-locales-2.9+cvs20090214/debian/rules @@ -0,0 +1,9 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/simple-patchsys.mk + +install/locales:: + install -d debian/${cdbs_curpkg}/usr/sbin/ debian/${cdbs_curpkg}/usr/share/locales/ + install -m 755 debian/local/install-language-pack debian/${cdbs_curpkg}/usr/share/locales/ + install -m 755 debian/local/remove-language-pack debian/${cdbs_curpkg}/usr/share/locales/ + install -m 755 debian/local/locale-gen debian/${cdbs_curpkg}/usr/sbin/ --- langpack-locales-2.9+cvs20090214.orig/debian/changelog +++ langpack-locales-2.9+cvs20090214/debian/changelog @@ -0,0 +1,381 @@ +langpack-locales (2.9+cvs20090214-6) jaunty; urgency=low + + * debian/local/locale-gen: + - Add --lang option which means the argument is a language code and + not a specific locale. All of its locales will be generated, + including any without a country code.(LP: #23435) + * debian/local/install-language-pack: + - Call locale-gen with above --lang argument + * debian/local/remove-language-pack: + - Remove locales even if they don't have a country associated with + them. + + -- Michael Terry Fri, 30 Jan 2009 10:55:02 -0500 + +langpack-locales (2.9+cvs20090214-5) jaunty; urgency=low + + * Add debian/local/txt2unicode.py: Script to convert an unicode + string into the format used in locale definitions. + * Add mt_MT-Awwissu-spelling.patch: Fix Maltese spelling of * + "Awwissu" (August). (LP: #262133) + * Add en_CA-dateformat.patch: en_CA date format should be "%y-%m-%d" + (see http://inms-ienm.nrc-cnrc.gc.ca/faq_time_e.html#Q8). + (LP: #214730) + + -- Martin Pitt Tue, 24 Feb 2009 17:29:59 +0100 + +langpack-locales (2.9+cvs20090214-4) jaunty; urgency=low + + * Drop Conflicts: to belocs-locales-bin, just keep the Replaces:. + libc6 already conflicts to it and thus will cause it to be cleaned + up on upgrades. This narrows the time when /usr/bin/locale does + not exist. (LP: #330048) + + -- Martin Pitt Mon, 16 Feb 2009 15:18:57 +0100 + +langpack-locales (2.9+cvs20090214-3) jaunty; urgency=low + + * Do not install /etc/belocs/iso-639.def any more. + + -- Martin Pitt Mon, 16 Feb 2009 10:08:00 +0100 + +langpack-locales (2.9+cvs20090214-2) jaunty; urgency=low + + * debian/control: Add alternative dependency to libc6.1, to unbreak + ia64. + + -- Martin Pitt Mon, 16 Feb 2009 09:48:20 +0100 + +langpack-locales (2.9+cvs20090214-1) jaunty; urgency=low + + * Reupload with a cleaned orig.tar.gz, so that the patches actually + apply. + + -- Martin Pitt Sat, 14 Feb 2009 14:37:36 +0100 + +langpack-locales (2.9+cvs20090213-1) jaunty; urgency=low + + * Synchronize locale data from current CVS head. + * Drop patches included upstream: + - es_CR-first-weekday.patch + - lv_LV_abday.patch + - shs_CA.patch + * Move locale generation scripts into this package, from + belocs-locales-bin (which is going away, it's dead upstream): + - Add debian/local/locale-gen and manpage + - Add debian/local/{install,remove}-language-pack + - debian/manpages: Install locale-gen.8 + - debian/rules: Install above scripts. + - debian/control: Conflicts/Replaces: belocs-locales-bin and + depend on current libc6 instead (which now provides localedef + and friends again). + - debian/local/locale-gen: Remove belocs magic handling. + * debian/preinst: Remove obsolete /etc/belocs/ configuration files. + * Drop iso14651_t1_filename.patch, not needed any more with current + glibc's localedef. + * debian/copyright: Update to current copyright of glibc + (LGPL-2.1+). + * debian/control: Move to Section "libs", since "base" is obsolete. + * debian/locales.postinst: Don't call locale-gen with full path + (Debian Policy 6.1). + + -- Martin Pitt Sat, 14 Feb 2009 14:37:29 +0100 + +langpack-locales (2.7.9-5) intrepid; urgency=low + + * Add debian/patches/la_AU.patch: Add Latin/Australia locale, thanks to + Robert Collins! (Rejected upstream). (LP: #234105) + + -- Martin Pitt Wed, 18 Jun 2008 12:45:43 +0200 + +langpack-locales (2.7.9-4) hardy; urgency=low + + * Remove debian/patches/es-am_pm.patch again, since 24 hour format is more + common in Spain. (LP: #202661) For those people who prefer 12 hour, + gnome-panel should provide this as an option instead of adding patches for + this to every single locale (see LP #51255). + + -- Martin Pitt Wed, 26 Mar 2008 17:28:54 +0100 + +langpack-locales (2.7.9-3) hardy; urgency=low + + * Add debian/patches/shs_CA.patch: Add shs_CA locale. (LP: #189995) + + -- Martin Pitt Thu, 13 Mar 2008 18:17:31 +0100 + +langpack-locales (2.7.9-2) hardy; urgency=low + + * Drop sr_RS_currency.patch. According to Danilo Scheran, RSD is the + official Serbian currency. + * Forwarded our patches upstream, add "Upstream:" tags to them. + * Drop debian/patches/serbia_country_num.patch; Current iso_3166.xml + shows that 688 is the correct country number for Serbia, and the bug is + actually in belocs-locales-bin's outdated iso-3166.def. + + -- Martin Pitt Tue, 11 Mar 2008 23:05:22 +0100 + +langpack-locales (2.7.9-1) hardy; urgency=low + + * Synchronize to locales data from glibc 2.7-9. + - Now includes pl_PL_dateformat.patch, drop patch. + - Fixes pt_PT monetary decimal point. (LP: #111791) + - Fixes pl_PL date format. (LP: #184405) + - Adds AM/PM for es_VE. (LP: #119645) + * Tag our remaining patches. + * Add debian/patches/en_IE-am_pm.patch: Add AM/PM definition for en_IE. + (LP: #199899) + * Add debian/patches/eo_US.patch: Add eo_US locale, thanks to David + Mandelberg. (LP: #1918) + * Add debian/patches/es-am_pm.patch: Add AM/PM defintion for es_ES + (LP: #51255) and es_MX (LP: #106381) + * Add debian/patches/es_CR-first-weekday.patch: Fix first weekday and + workday for es_CR. (LP: #149007) + * Add debian/patches/en_AU-first-weekday.patch: Fix first weekday and + workday for en_AU. (LP: #192507) + + -- Martin Pitt Tue, 11 Mar 2008 13:10:48 +0100 + +langpack-locales (2.6.1-1) gutsy; urgency=low + + * Move to non-native packaging, now that we maintain our locales as patches + relative to glibc upstream. + * Add debian/patches/pl_PL_dateformat.patch: Fix Polish date format. Thanks + to Arne Goetje for the patch! (LP: #133667) + + -- Martin Pitt Fri, 24 Aug 2007 17:02:39 +0200 + +langpack-locales (2.6.1) gutsy; urgency=low + + * Synchronize to locales data from glibc 2.6.1, since belocs-locales-data + seems unmaintained at the moment. + * Create a proper patch lv_LV_abday.patch for our remaining delta: Remove + the stray spaces from abbreviated Latvian weekday names. (LP #58338) + * Add test-locales: Script to test-build all supported locales to catch + errors. + * debian/control: Bump dependency to belocs-locales-bin to get the map + fixes. + * Add debian/patches/sr_RS_currency.patch: Fix international currency + symbol: RSD -> CSD (according to ISO-4217). + * Add debian/patches/iso14651_t1_filename.patch: Fix iso14651_t1 inclusion + in ky_KG and uk_UA; our belocs-locales-bin does not understand the + syntax in include files. + * Add debian/patches/serbia_country_num.patch: Fix numeric country code of + Serbia. + + -- Martin Pitt Thu, 16 Aug 2007 10:28:26 +0200 + +langpack-locales (2.3.23) feisty; urgency=low + + * Synchronize to belocs-locales-data 2.4-5 locales, lots of fixes. + + -- Martin Pitt Thu, 14 Dec 2006 06:40:50 +0100 + +langpack-locales (2.3.22) edgy; urgency=low + + * Drop belocs-locales-bin Pre-Depends: to a Depends: again, now that b-l-b + does not depend on us any more. Closes: LP#62429 + + -- Martin Pitt Fri, 6 Oct 2006 12:57:26 +0200 + +langpack-locales (2.3.21) edgy; urgency=low + + * lv_LV: Fix abbreviated day names. Closes: LP#58338 + * debian/control: Pre-Depend on belocs-locales-bin instead of just depending + on it, so that an updated locale-gen.conf actually has an effect. Closes: + LP#50739 + + -- Martin Pitt Mon, 18 Sep 2006 11:20:29 +0200 + +langpack-locales (2.3.20) edgy; urgency=low + + * Synchronize data with belocs-locale-data 2.4-2. + + -- Martin Pitt Fri, 4 Aug 2006 12:49:16 +0200 + +langpack-locales (2.3.19) edgy; urgency=low + + * Depends on newer belocs-locales-bin + + * Drop timezone bits, depend on tzdata. + + -- Jeff Bailey Wed, 21 Jun 2006 13:28:15 -0400 + +langpack-locales (2.3.18) dapper; urgency=low + + * bn_BD: Fix LC_TIME.abday and LC_TIME.day with patch from + http://sources.redhat.com/bugzilla/show_bug.cgi?id=2662. Closes: LP#44982 + + -- Martin Pitt Tue, 16 May 2006 12:56:35 +0200 + +langpack-locales (2.3.17) dapper; urgency=low + + * Update timezone data to 2006g. + + -- Martin Pitt Mon, 15 May 2006 17:21:07 +0200 + +langpack-locales (2.3.16) dapper; urgency=low + + * Add and ship forgotten file iso-639.def; this fixes generation of e. g. + the bn_BD locale. + * locales/en_IE: Add AM/PM definition. Closes: LP#42552 + + -- Martin Pitt Wed, 10 May 2006 13:27:24 +0200 + +langpack-locales (2.3.15) dapper; urgency=low + + * locales/ca_ES@valencia: Add Valencian locale, thanks to Jordi Mallach and + Robert Millan. Closes: LP#39681 + + -- Martin Pitt Fri, 28 Apr 2006 13:14:56 +0200 + +langpack-locales (2.3.14) dapper; urgency=low + + * locales/{en,cy}_GB: Add AM/PM definition. (See Malone #34262). + + -- Martin Pitt Mon, 10 Apr 2006 12:57:24 +0200 + +langpack-locales (2.3.13) dapper; urgency=low + + * locales/tr_TR: Re-add trailing space in int_curr_symbol, it is correct. + Closes: LP#34738 + * Fix Catalan locales (sync with Debian), thanks to Robert Millan. + - Add Euro support to ca_FR and ca_AD. + - Remove obsolete ca_FR@euro and ca_AD@euro. + - Add ca_IT. + - List them all in SUPPORTED file. + - Closes: LP#37011 + + -- Martin Pitt Thu, 30 Mar 2006 17:35:33 +0200 + +langpack-locales (2.3.12) dapper; urgency=low + + * locales/en_NZ: Add AM/PM definition (Malone #34262) + * locales/tr_TR: Fix stray space in int_curr_symbol (Malone #34738) + * locales/eo: Rename to eo_XX, since that's the format that other programs + expect (Malone #23435) + * locales/es_CO: Change standard paper size from A4 to US Letter. (Malone + #27622) + + -- Martin Pitt Mon, 20 Mar 2006 16:42:09 +0100 + +langpack-locales (2.3.11) dapper; urgency=low + + * Add debhelper token to postinst. + + * Move timezone configury logic from libc.postinst to locales.postinst + + * Update FSF address. + + * Update to tzdata2006b + + -- Jeff Bailey Wed, 1 Mar 2006 13:52:44 -0500 + +langpack-locales (2.3.10) dapper; urgency=low + + * Add iso3166.tab and zone.tab files into /usr/share/zoneinfo. + + -- Jeff Bailey Fri, 3 Feb 2006 15:59:56 +0000 + +langpack-locales (2.3.9) dapper; urgency=low + + * Transform into a native package to handle embedded tar.gz file. + + * Add timezones. + - debian/updatetzdata.sh: New file. + - debian/tzdata2006a.tar.gz: New upstream snapshot. + + * Remove stray bits from debian/control + - debian/control: Don't build-dep on po4a + + -- Jeff Bailey Fri, 3 Feb 2006 09:51:59 +0000 + +langpack-locales (2.3.8-1) dapper; urgency=low + + * Update to latest belocs locales. + - Fixes first day of week for German. (Malone #5387) and Spanish + (Malone #29672). + * debian/control: Add dependency to belocs-locales-bin. + * Do not ship locale-gen and {install,remove}-language-pack any more, these + were moved to belocs-locales-bin. + * debian/locales.postinst: Check $1, call locale-gen with full path. + + -- Martin Pitt Wed, 1 Feb 2006 22:36:27 +0000 + +langpack-locales (2.3.7-6) dapper; urgency=low + + * Allow locale-gen with locale arguments to work even when no language + packs have been installed yet (i.e. /var/lib/locales/supported.d/ is + empty). + + -- Colin Watson Mon, 16 Jan 2006 19:07:51 +0000 + +langpack-locales (2.3.7-5) dapper; urgency=low + + * (re)generate locales in postinst. + * always regenerate locales if they're specified on the command line. + + -- Tollef Fog Heen Fri, 13 Jan 2006 13:40:18 +0100 + +langpack-locales (2.3.7-4) dapper; urgency=low + + * Add validlocale program, formerly in base-config. Conflict with and + replace base-config. + + -- Colin Watson Mon, 2 Jan 2006 19:08:00 +0000 + +langpack-locales (2.3.7-3) dapper; urgency=low + + * debian/preinst: + - Remove old /etc/locale.gen after migrating it to supported.d/. + - Do not fail if locale.gen does not contain anything but comments. + + -- Martin Pitt Sun, 1 Jan 2006 14:12:06 +0100 + +langpack-locales (2.3.7-2) dapper; urgency=low + + * debian/preinst: Make sure that /var/lib/locales/supported.d/ exists. + + -- Martin Pitt Wed, 28 Dec 2005 15:15:51 +0100 + +langpack-locales (2.3.7-1) dapper; urgency=low + + * Ship all locales again, the language packs do not ship them any more (as + discussed in yesterday's meeting). + * debian/preinst: Rescue /etc/locale.gen to + /var/lib/locales/supported.d/local on upgrades. + * locale-gen: + - Drop --utf8 parameter again, it is obsolete now. The language pack's + supported.d files only have UTF-8 locales and we might want to support + other encodings in the future. + - Command line arguments now can specify a list of languages and locales + which will be generated in addition to the ones supported by the + language packs. + * Adapted locale-gen.8 manpage for new behaviour. + + -- Martin Pitt Tue, 20 Dec 2005 17:26:16 +0100 + +langpack-locales (2.3.6-3) dapper; urgency=low + + * {install,remove}-language-packs: Reload gdm to make it aware of + new/removed locales. (Ubuntu #16687) + + -- Martin Pitt Tue, 13 Dec 2005 16:17:48 +0100 + +langpack-locales (2.3.6-2) dapper; urgency=low + + * Fix permissions of install/remove hooks. + + -- Martin Pitt Thu, 1 Dec 2005 21:01:14 +0100 + +langpack-locales (2.3.6-1) dapper; urgency=low + + * Initial release as a standalone Ubuntu specific package according to + https://wiki.ubuntu.com/LocalesThatDontSuck. + * Provides a common install/remove hook for language pack maintainer + scripts. + * Drop /etc/locale.gen conffile. + * Modify locale-gen to use /var/lib/locales/supported.d/, and add an --utf8 + parameter. + * Update locale-gen manpage. + + -- Martin Pitt Mon, 28 Nov 2005 22:36:11 +0100 --- langpack-locales-2.9+cvs20090214.orig/debian/preinst +++ langpack-locales-2.9+cvs20090214/debian/preinst @@ -0,0 +1,33 @@ +#!/bin/sh -e + +# remove a no-longer used conffile +rm_conffile() +{ + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +# Remove obsolete belocs files +if [ "$1" = "install" -o "$1" = "upgrade" ] && \ + dpkg --compare-versions "$2" le "2.9+cvs20090213-3"; then + rm_conffile locales /etc/belocs/iso-639.def + rm_conffile belocs-locales-bin /etc/belocs/locale-gen.conf + rmdir /etc/belocs 2>/dev/null|| true +fi + +#DEBHELPER# + +exit 0 --- langpack-locales-2.9+cvs20090214.orig/debian/dirs +++ langpack-locales-2.9+cvs20090214/debian/dirs @@ -0,0 +1 @@ +/usr/lib/locale --- langpack-locales-2.9+cvs20090214.orig/debian/prerm +++ langpack-locales-2.9+cvs20090214/debian/prerm @@ -0,0 +1,15 @@ +#!/bin/sh +set -e + +case "$1" in + remove) + rm -f /usr/lib/locale/locale-archive + ;; + *) + ;; +esac + +#DEBHELPER# + +exit 0 + --- langpack-locales-2.9+cvs20090214.orig/debian/locales.postinst +++ langpack-locales-2.9+cvs20090214/debian/locales.postinst @@ -0,0 +1,9 @@ +#! /bin/sh -e + +#DEBHELPER# + +if [ "$1" = configure ]; then + locale-gen +fi + +exit 0 --- langpack-locales-2.9+cvs20090214.orig/debian/copyright +++ langpack-locales-2.9+cvs20090214/debian/copyright @@ -0,0 +1,27 @@ +This package was debianized by Martin Pitt +on Monday, 2005-11-28. + +Copyright (C) 1991,92,93,94,95,96,97,98,99,2000,2001,2002,2003 Free Software Foundation, Inc. +Portions Copyright (C) Canonical Ltd. + + Copyright (C) 1991,92,93,94,95,96,97,98,99,2000,2001,2002,2003,2004,2005, + 2006,2007,2008 Free Software Foundation, Inc. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, write to the Free + Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA + 02110-1301 USA + +On Debian systems, the complete text of the GNU Library +General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. + --- langpack-locales-2.9+cvs20090214.orig/debian/compat +++ langpack-locales-2.9+cvs20090214/debian/compat @@ -0,0 +1 @@ +4 --- langpack-locales-2.9+cvs20090214.orig/debian/links +++ langpack-locales-2.9+cvs20090214/debian/links @@ -0,0 +1 @@ +/etc/locale.alias /usr/share/locale/locale.alias --- langpack-locales-2.9+cvs20090214.orig/debian/install +++ langpack-locales-2.9+cvs20090214/debian/install @@ -0,0 +1,5 @@ +charmaps usr/share/i18n/ +locales usr/share/i18n/ +SUPPORTED usr/share/i18n/ +locale.alias etc/ + --- langpack-locales-2.9+cvs20090214.orig/debian/manpages +++ langpack-locales-2.9+cvs20090214/debian/manpages @@ -0,0 +1,2 @@ +locale.alias.5 +debian/local/locale-gen.8 --- langpack-locales-2.9+cvs20090214.orig/debian/control +++ langpack-locales-2.9+cvs20090214/debian/control @@ -0,0 +1,21 @@ +Source: langpack-locales +Section: libs +Priority: important +Maintainer: Martin Pitt +Build-Depends: cdbs, debhelper (>> 4) +Standards-Version: 3.7.2 + +Package: locales +Architecture: all +Depends: libc6 (>= 2.9-0ubuntu10) | libc6.1 (>= 2.9-0ubuntu10) +Conflicts: belocs-locale-data, base-config +Replaces: belocs-locale-data, belocs-locales-bin, base-config, libc6 (<< 2.3.6-0ubuntu6), libc6.1 (<< 2.3.6-0ubuntu6) +Description: common files for locale support + This package provides support for localized environments (locales). + It installs character and transliteration maps, provides the POSIX + locale definition and provides common scripts for language pack + handling. + . + The actual locale definitions are not part of this package, these are + shipped in the language packs and are installed and removed + automatically. --- langpack-locales-2.9+cvs20090214.orig/debian/local/txt2unicode.py +++ langpack-locales-2.9+cvs20090214/debian/local/txt2unicode.py @@ -0,0 +1,11 @@ +#!/usr/bin/python +# Convert a line from stdin to the U notation used in locales +# Author: Martin Pitt +# License: Public Domain + +import sys + +line = sys.stdin.readline().decode('UTF-8') +for c in line.strip(): + sys.stdout.write('' % ord(c)) +print --- langpack-locales-2.9+cvs20090214.orig/debian/local/install-language-pack +++ langpack-locales-2.9+cvs20090214/debian/local/install-language-pack @@ -0,0 +1,22 @@ +#!/bin/sh -e + +if [ -z "$1" ]; then + echo "Usage: $0 []" + exit 0 +fi + +# install locales for base packages (not for gnome/kde) +# (use "--no-purge" in case PURGE=yes is used in config, which would remove +# all other locale files) +if [ -z "$2" ]; then + /usr/sbin/locale-gen --no-purge --lang "$1" +fi + +# reload gdm to make it aware of new locales +if [ -x /etc/init.d/gdm ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d gdm reload || exit 0 + else + /etc/init.d/gdm reload || exit 0 + fi +fi --- langpack-locales-2.9+cvs20090214.orig/debian/local/remove-language-pack +++ langpack-locales-2.9+cvs20090214/debian/local/remove-language-pack @@ -0,0 +1,25 @@ +#!/bin/sh -e + +if [ -z "$1" ]; then + echo "Usage: $0 []" + exit 0 +fi + +# remove binary locales +# do nothing for gnome/kde +if [ -z "$2" ]; then + # do not remove locales if we merely remove language-support-* without + # removing language-pack-* + if [ ! -e /var/lib/locales/supported.d/$1 ]; then + rm -rf /usr/lib/locale/$1 /usr/lib/locale/$1[._@]* + fi +fi + +# reload gdm to make it aware of new locales +if [ -x /etc/init.d/gdm ]; then + if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then + invoke-rc.d gdm reload || exit 0 + else + /etc/init.d/gdm reload || exit 0 + fi +fi --- langpack-locales-2.9+cvs20090214.orig/debian/local/locale-gen +++ langpack-locales-2.9+cvs20090214/debian/local/locale-gen @@ -0,0 +1,237 @@ +#!/bin/sh + +set -e + +SUPPORTED=/var/lib/locales/supported.d +LOCALES=/usr/share/i18n/locales +STATEDIR=/var/lib/belocs + +[ -n "$POSIXLY_CORRECT" ] && unset POSIXLY_CORRECT || true + +IS_LANG=no +ARCHIVE=no +PURGE=no +ALIASES= + +# Handle command-line options +prev= +while true +do + option="$1" + if [ -n "$prev" ]; then + eval "$prev=\$option" + prev= + continue + fi + + case $option in + -h|--help) + cat <> "$SUPPORTED/local" + fi + else + # try to come up with a sensible default + GENERATE=`grep -E "^${1}( |[._@][^[:space:]]* )UTF-8" /usr/share/i18n/SUPPORTED` + if [ -z "$GENERATE" ]; then + echo "Error: '$1' is not a supported language or locale" >&2 + exit 1 + fi + NL=' +' + IFS_SAVE="$IFS" + IFS="$NL" + for L in $GENERATE; do + IFS="$IFS_SAVE" + # add to supported.d/local if necessary + if [ ! -f "$SUPPORTED/local" ] || ! grep -q "^$L" "$SUPPORTED/local"; then + echo "$L" >> "$SUPPORTED/local" + fi + IFS="$NL" + done + IFS="$IFS_SAVE" + fi + shift +done + +[ -d "$STATEDIR" ] || mkdir -p "$STATEDIR" || PURGE=yes + +no_archive= +[ "$ARCHIVE" = yes ] || no_archive="--no-archive" +locale_alias= +[ -n "$ALIASES" ] && [ -r "$ALIASES" ] && locale_alias="-A $ALIASES" + +umask 022 + +is_entry_ok() { + if [ -n "$locale" ] && [ -n "$charset" ] + then + true + else + echo "Error: Bad entry '$locale $charset'" 1>&2 + false + fi +} + +normalize_locale() { + # Insert a leading x in case $1 begins with a dash + this_locale=x$1 + charset= + if echo $this_locale | LC_ALL=C grep '\.' > /dev/null 2>&1; then + charset=$(echo $this_locale | sed -e 's/^x//' -e 's/.*\(\.[^@]*\).*/\1/' | LC_ALL=C tr '[A-Z]' '[a-z]' | LC_ALL=C sed -e 's/[^a-z0-9.]//g') + fi + modifier= + if echo $this_locale | LC_ALL=C grep '@' > /dev/null 2>&1; then + modifier=$(echo $this_locale | sed -e 's/^x//' -e 's/.*\(@[^.]*\).*/\1/') + fi + main=$(echo $this_locale | sed -e 's/^x//' -e 's/[.@].*//') + echo $main$charset$modifier +} + +gen_dep() { + [ -d "$STATEDIR" ] || return 1 + # Generate the dependency list. It is needed by update_md5sum() + ( LC_ALL=C grep '^\(include\|copy\)' "$LOCALES"/* |\ + sed -e "s,^$LOCALES/,," -e 's/\(include\|copy\)[ ]*"/ /' -e 's/".*//' + ) | LC_ALL=C sort -u > "$STATEDIR/locales.dep" 2>/dev/null +} + +gen_md5sum() { + [ -d "$STATEDIR" ] || return 1 + # If old md5sums are not present, regenerate all locales. + [ -f "$STATEDIR/hashfile" ] || return 1 + mv -f "$STATEDIR/hashfile" "$STATEDIR/hashfile.old" || return 1 + + md5sum "$LOCALES"/* > "$STATEDIR/hashfile.new" || return 1 + locale -a > "$STATEDIR/list" 2>/dev/null || return 1 +} + +# Check whether a locale was already generated and all its dependencies +# have not been modified. +already_generated() { + [ -f "$STATEDIR/locales.dep" ] || return 1 + [ -f "$STATEDIR/hashfile.old" ] || return 1 + [ -f "$STATEDIR/hashfile.new" ] || return 1 + [ -f "$STATEDIR/list" ] || return 1 + this_locale=$(normalize_locale $1) + this_input=$2 + # Check whether the locale is already present. + LC_ALL=C grep "^$this_locale\$" "$STATEDIR/list" > /dev/null 2>&1 || return 1 + # If yes, check if this file and its dependencies have changed + for file in "$this_input" $(LC_ALL=C grep "^$this_input:" "$STATEDIR/locales.dep" | awk '{printf "%s ", $2}') + do + md5old=$(LC_ALL=C grep "/$file\$" "$STATEDIR/hashfile.old" | sed -e 1q) + md5new=$(LC_ALL=C grep "/$file\$" "$STATEDIR/hashfile.new" | sed -e 1q) + [ -n "$md5old" ] || return 1 + [ -n "$md5new" ] || return 1 + [ "$md5new" = "$md5old" ] || return 1 + done + return 0 +} + +update_md5sum() { + [ -f "$STATEDIR/locales.dep" ] || return 0 + this_locale=$1 + for file in "$this_locale" $(LC_ALL=C grep "^$this_locale:" "$STATEDIR/locales.dep" | awk '{printf "%s ", $2}') + do + md5sum "$LOCALES/$file" >> "$STATEDIR/hashfile" || return 0 + done +} + +gen_dep 2>/dev/null || true +[ "$PURGE" = yes ] || gen_md5sum 2>/dev/null || PURGE=yes +if [ "$PURGE" = yes ]; then + rm -f "$STATEDIR/hashfile.old" "$STATEDIR/hashfile.new" "$STATEDIR/list" 2>/dev/null || true + rm -rf /usr/lib/locale/* 2>/dev/null || true +fi + +echo "Generating locales..." +/bin/echo -e "$GENERATE" | sort -u | while read locale charset +do + case $locale in + \#*) continue;; + "") continue;; + esac + is_entry_ok || continue + # Remove charset if present + input=$(echo $locale | sed -e 's/\.[^@]*//') + # Insert charset before modifier + printf "%s" $input | sed -e "s/^\\([^@]*\\)\\(.*\\)/ \\1.${charset}\\2... /" + if already_generated $locale $input; then + echo 'up-to-date' + else + if localedef $no_archive -i $input -c -f $charset $locale_alias $locale; then + echo 'done' + else + echo 'failed' + fi + fi + update_md5sum $input 2>/dev/null +done +echo "Generation complete." --- langpack-locales-2.9+cvs20090214.orig/debian/local/locale-gen.8 +++ langpack-locales-2.9+cvs20090214/debian/local/locale-gen.8 @@ -0,0 +1,93 @@ +.TH LOCALE-GEN 8 "March 2005" "Debian GNU/Linux" +.SH "NAME" +locale-gen \- compile a list of locale definition files + +.SH "SYNOPSIS" +.B locale-gen +[\fIoptions\fR] [\fIlocale\fR] [\fIlanguage\fR] ... + +.SH "DESCRIPTION" +Compiled locale files take about 50MB of disk space, and most users +only need few locales. In order to save disk space, compiled locale +files are not distributed in the +.B locales +package, but selected locales are automatically generated when this +package is installed by running the +.B locale-gen +program. + +If a list of languages and/or locales is specified as arguments, then +\fBlocale-gen\fR only generates these particular locales and adds the new ones +to /var/lib/locales/supported.d/local. Otherwise it generates all supported +locales. + +.PP +Locale data files can be stored either in a single archive file, +.BR /usr/lib/locale/locale-archive , +or in a deep tree where individual files are stored under +.BR /usr/lib/locale//LC_* . +But unlike the +.B locales +package, compiled locale definitions are not removed when running +.BR locale-gen , +and locales are compiled again only if locale source files have changed. + +.SH "OPTIONS" +These options override settings found in +.BR /etc/belocs/locale-gen.conf . + +.TP +.B \-\-help +Display an help message and exit. +.TP +.B \-\-purge +Remove all existing locales before processing. +.TP +.B \-\-no\-purge +Do not remove existing locales before processing. +.TP +.B \-\-archive +When this option is set, locale data are stored in a single archive +.BR /usr/lib/locale/locale-archive . +.TP +.B \-\-no\-archive +When this option is set, locale data are stored in +.B /usr/lib/locale//LC_* +files. +This is the default. +.TP +\fB\-\-aliases\fP=\fIFILE\fP +Locale aliases are read from +.IR FILE . + +.SH "FILES" +.TP +.B /var/lib/locales/supported.d/* +List all locales to generate. File format is similar to +.BR /usr/share/i18n/SUPPORTED . +.TP +.B /etc/belocs/locale-gen.conf +Customize how compiled locale files are stored onto disk. +.TP +.B /usr/lib/locale//LC_* +Compiled locale data. +.TP +.B /usr/lib/locale/locale-archive +Generated archive containing compiled locale data, if +.B \-\-archive +flag is set. +.TP +.B /var/lib/belocs +Directory used to keep track of changes in locale source files. + +.SH "SEE ALSO" +localedef(1), locale(1), locale-gen.conf(5). +.SH "AUTHOR" +The +.B locale-gen +program was originally written by Debian GNU libc maintainers, +and has been improved by Denis Barbier for +the +.B belocs-locales-bin +package. This manual page has been rewritten from scratch to +document the current behavior. --- langpack-locales-2.9+cvs20090214.orig/debian/local/test-locales +++ langpack-locales-2.9+cvs20090214/debian/local/test-locales @@ -0,0 +1,8 @@ +#!/bin/sh +rm -rf test-out +mkdir test-out +cat SUPPORTED | while read loc enc; do + echo "Testing $loc..." + localedef --no-archive -i locales/${loc%.*} -c -f $enc test-out/$loc +done +rm -rf test-out --- langpack-locales-2.9+cvs20090214.orig/debian/patches/mt_MT-Awwissu-spelling.patch +++ langpack-locales-2.9+cvs20090214/debian/patches/mt_MT-Awwissu-spelling.patch @@ -0,0 +1,24 @@ +# Description: Current spelling of "Awwissu" (August) +# Ubuntu: https://launchpad.net/bugs/262133 +# Upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=9891 +diff -Nur -x '*.orig' -x '*~' langpack-locales-2.9+cvs20090214/locales/mt_MT langpack-locales-2.9+cvs20090214.new/locales/mt_MT +--- langpack-locales-2.9+cvs20090214/locales/mt_MT 2009-02-13 19:19:43.000000000 +0100 ++++ langpack-locales-2.9+cvs20090214.new/locales/mt_MT 2009-02-24 17:17:05.302390162 +0100 +@@ -188,7 +188,7 @@ + abmon "";"";/ + "";"";/ + "";"";/ +- "";"";/ ++ "";"";/ + "";"";/ + "";"" + % +@@ -200,7 +200,7 @@ + "";/ + "";/ + "";/ +- "";/ ++ "";/ + "";/ + "";/ + "";/ --- langpack-locales-2.9+cvs20090214.orig/debian/patches/en_CA-dateformat.patch +++ langpack-locales-2.9+cvs20090214/debian/patches/en_CA-dateformat.patch @@ -0,0 +1,14 @@ +# Description: en_CA date format should be "%y-%m-%d" (see http://inms-ienm.nrc-cnrc.gc.ca/faq_time_e.html#Q8) +# Ubuntu: https://launchpad.net/bugs/214730 +# Upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=9842 +--- langpack-locales-2.9+cvs20090214/locales/en_CA 2009-02-13 19:19:33.000000000 +0100 ++++ langpack-locales-2.9+cvs20090214.new/locales/en_CA 2009-02-24 17:29:04.557636635 +0100 +@@ -125,7 +125,7 @@ + "";/ + "" + d_t_fmt "" +-d_fmt "" ++d_fmt "" + t_fmt "" + am_pm "";"" + t_fmt_ampm "" --- langpack-locales-2.9+cvs20090214.orig/debian/patches/la_AU.patch +++ langpack-locales-2.9+cvs20090214/debian/patches/la_AU.patch @@ -0,0 +1,178 @@ +# Description: Add la_AU locale +# Ubuntu: https://launchpad.net/bugs/234105 +# Upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=6583 (rejected) +--- langpack-locales-2.7.9.orig/locales/la_AU ++++ langpack-locales-2.7.9/locales/la_AU +@@ -0,0 +1,159 @@ ++escape_char / ++comment_char % ++ ++% Latin locale based on the English language locale for Australia ++% Source: ++% Address: ++% Contact: Robert Collins ++% Email: robert.collins@ubuntu.com ++% Tel: ++% Fax: ++% Language: la ++% Revision: 1.0 ++% Date: 2008-05-23 ++% Users: general ++% Repertoiremap: mnemonic.ds ++% Charset: ISO-8859-1 ++% Distribution and use is free, also ++% for commercial purposes. ++ ++LC_IDENTIFICATION ++title "Latin locale based on the English locale for Australia" ++source "" ++address "" ++contact "Robert Collins" ++email "bug-glibc-locales@gnu.org" ++tel "" ++fax "" ++language "Latin" ++revision "1.0" ++date "2000-06-29" ++% ++category "la_AU:2000";LC_IDENTIFICATION ++category "la_AU:2000";LC_CTYPE ++category "la_AU:2000";LC_COLLATE ++category "la_AU:2000";LC_TIME ++category "la_AU:2000";LC_NUMERIC ++category "la_AU:2000";LC_MONETARY ++category "la_AU:2000";LC_MESSAGES ++category "la_AU:2000";LC_PAPER ++category "la_AU:2000";LC_NAME ++category "la_AU:2000";LC_ADDRESS ++category "la_AU:2000";LC_TELEPHONE ++ ++END LC_IDENTIFICATION ++ ++LC_CTYPE ++copy "en_GB" ++END LC_CTYPE ++ ++LC_COLLATE ++copy "iso14651_t1" ++END LC_COLLATE ++ ++LC_MONETARY ++int_curr_symbol "" ++currency_symbol "" ++mon_decimal_point "" ++mon_thousands_sep "" ++mon_grouping 3;3 ++positive_sign "" ++negative_sign "" ++int_frac_digits 2 ++frac_digits 2 ++p_cs_precedes 1 ++p_sep_by_space 0 ++n_cs_precedes 1 ++n_sep_by_space 0 ++p_sign_posn 1 ++n_sign_posn 1 ++END LC_MONETARY ++ ++LC_NUMERIC ++decimal_point "" ++thousands_sep "" ++grouping 3;3 ++END LC_NUMERIC ++ ++LC_TIME ++abday "";"";/ ++ "";"";/ ++ "";"";/ ++ "" ++day "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "" ++abmon "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"" ++mon "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "" ++d_t_fmt "" ++d_fmt "" ++t_fmt "" ++am_pm "";"" ++t_fmt_ampm "/ ++" ++date_fmt "/ ++/ ++" ++% FIXME: found in CLDR ++first_weekday 1 ++END LC_TIME ++ ++LC_MESSAGES ++yesexpr "" ++noexpr "" ++END LC_MESSAGES ++ ++LC_PAPER ++% FIXME ++height 297 ++% FIXME ++width 210 ++END LC_PAPER ++ ++LC_TELEPHONE ++tel_int_fmt "/ ++" ++int_prefix "" ++int_select "" ++END LC_TELEPHONE ++ ++LC_MEASUREMENT ++% FIXME ++measurement 1 ++END LC_MEASUREMENT ++ ++LC_NAME ++name_fmt "/ ++" ++END LC_NAME ++ ++LC_ADDRESS ++postal_fmt "/ ++/ ++/ ++/ ++" ++country_ab2 "" ++country_ab3 "" ++country_num 036 ++END LC_ADDRESS +only in patch2: +unchanged: +--- langpack-locales-2.7.9.orig/SUPPORTED ++++ langpack-locales-2.7.9/SUPPORTED +@@ -269,6 +269,7 @@ + kw_GB.UTF-8 UTF-8 + kw_GB ISO-8859-1 + ky_KG UTF-8 ++la_AU.UTF-8 UTF-8 + lg_UG.UTF-8 UTF-8 + lg_UG ISO-8859-10 + li_BE UTF-8 + --- langpack-locales-2.9+cvs20090214.orig/debian/patches/en_IE-am_pm.patch +++ langpack-locales-2.9+cvs20090214/debian/patches/en_IE-am_pm.patch @@ -0,0 +1,14 @@ +# Description: Add am_pm for en_IE. +# Ubuntu: https://launchpad.net/bugs/199899 +# Upstream: http://sourceware.org/bugzilla/show_bug.cgi?id=3236 +--- a/locales/en_IE ++++ b/locales/en_IE +@@ -110,7 +110,7 @@ mon "";/ + d_t_fmt "" + d_fmt "" + t_fmt "" +-am_pm "";"" ++am_pm "";"" + t_fmt_ampm "" + date_fmt "/ + / --- langpack-locales-2.9+cvs20090214.orig/debian/patches/eo_US.patch +++ langpack-locales-2.9+cvs20090214/debian/patches/eo_US.patch @@ -0,0 +1,255 @@ +# Description: Add eo_US locale. +# Ubuntu: https://launchpad.net/bugs/1918 +diff -Nur -x '*.orig' -x '*~' langpack-locales-2.9+cvs20090213/locales/eo_US langpack-locales-2.9+cvs20090213.new/locales/eo_US +--- langpack-locales-2.9+cvs20090213/locales/eo_US 1970-01-01 01:00:00.000000000 +0100 ++++ langpack-locales-2.9+cvs20090213.new/locales/eo_US 2009-02-13 12:32:49.567209369 +0100 +@@ -0,0 +1,238 @@ ++comment_char % ++escape_char / ++ ++% Esperanto language locale for the USA ++% Contributed by David Mandelberg ++% based on eo_EO by Edmund GRIMLEY EVANS ++% with help from en_US by Ulrich Drepper ++ ++LC_IDENTIFICATION ++title "Esperanto locale for the USA" ++source "" ++address "" ++contact "" ++email "debian-esperanto@lists.debian.org" ++tel "" ++fax "" ++language "Esperanto" ++territory "USA" ++revision "draft" ++date "2005-08-27" ++% ++category "eo_US:2000";LC_IDENTIFICATION ++category "eo_US:2000";LC_CTYPE ++category "eo_US:2000";LC_COLLATE ++category "eo_US:2000";LC_TIME ++category "eo_US:2000";LC_NUMERIC ++category "eo_US:2000";LC_MONETARY ++category "eo_US:2000";LC_MESSAGES ++category "eo_US:2000";LC_PAPER ++category "eo_US:2000";LC_NAME ++category "eo_US:2000";LC_ADDRESS ++category "eo_US:2000";LC_TELEPHONE ++ ++END LC_IDENTIFICATION ++ ++LC_CTYPE ++copy "i18n" ++END LC_CTYPE ++ ++LC_COLLATE ++copy "iso14651_t1" ++ ++collating-symbol ++collating-symbol ++collating-symbol ++collating-symbol ++collating-symbol ++collating-symbol ++ ++reorder-after ++ ++reorder-after ++ ++reorder-after ++ ++reorder-after ++ ++reorder-after ++ ++reorder-after ++ ++ ++reorder-after ++ ;;;IGNORE % Ĉ ++reorder-after ++ ;;;IGNORE % ĉ ++reorder-after ++ ;;;IGNORE % Ĝ ++reorder-after ++ ;;;IGNORE % ĝ ++reorder-after ++ ;;;IGNORE % Ĥ ++reorder-after ++ ;;;IGNORE % ĥ ++reorder-after ++ ;;;IGNORE % Ĵ ++reorder-after ++ ;;;IGNORE % ĵ ++reorder-after ++ ;;;IGNORE % Ŝ ++reorder-after ++ ;;;IGNORE % ŝ ++reorder-after ++ ;;;IGNORE % Ŭ ++reorder-after ++ ;;;IGNORE % ŭ ++ ++reorder-end ++ ++END LC_COLLATE ++ ++LC_MONETARY ++int_curr_symbol "" % "USD " ++currency_symbol "" % "$" ++% "" ne eblas en ISO-8859-3 ++mon_decimal_point "" % . ++mon_thousands_sep "" % , ++mon_grouping 3;3 ++positive_sign "" ++negative_sign "" ++int_frac_digits 2 ++frac_digits 2 ++p_cs_precedes 1 ++p_sep_by_space 0 ++n_cs_precedes 1 ++int_n_sep_by_space 1 ++n_sep_by_space 0 ++p_sign_posn 1 ++n_sign_posn 1 ++END LC_MONETARY ++ ++LC_NUMERIC ++decimal_point "" ++thousands_sep "" ++grouping 3;3 ++END LC_NUMERIC ++ ++LC_TIME ++ ++% "dim";"lun";"mar";"mer";"ĵaŭ";"ven";"sab" ++abday "";"";/ ++ "";"";/ ++ "";"";/ ++ "" ++ ++% "dimanĉo";"lundo";"mardo";"merkredo";"ĵaŭdo";"vendredo";"sabato" ++day "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "" ++ ++% "Jan";"Feb";"Mar";"Apr";"Maj";"Jun";"Jul";"Aŭg";"Sep";"Okt";"Nov";"Dec" ++abmon "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"";/ ++ "";"" ++ ++% "Januaro";"Februaro";"Marto";"Aprilo";"Majo";"Junio"; ++% "Julio";"Aŭgusto";"Septembro";"Oktobro";"Novembro";"Decembro" ++mon "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "";/ ++ "" ++ ++am_pm "";"" ++ ++% "%a %d %b %Y %T %z" ++d_t_fmt "" ++ ++% "%m/%d/%Y" ++d_fmt "" ++ ++% "%r" ++t_fmt "" ++ ++% "%I:%M:%S %p" ++t_fmt_ampm "/ ++" ++ ++% "AM";"PM" ++am_pm "";"" ++ ++% "%a %b %e %H:%M:%S %Z %Y" ++date_fmt "/ ++/ ++" ++END LC_TIME ++ ++LC_MESSAGES ++% "^[JjYy].*" ++yesexpr "" ++% "^[Nn].*" ++noexpr "" ++END LC_MESSAGES ++ ++LC_PAPER ++height 279 ++width 216 ++END LC_PAPER ++ ++LC_TELEPHONE ++% "+%c (%a) %l" ++tel_int_fmt "/ ++" ++% "(%a) %l" ++tel_dom_fmt "" ++% "11" ++int_select "" ++% "1" ++int_prefix "" ++END LC_TELEPHONE ++ ++LC_MEASUREMENT ++measurement 2 ++END LC_MEASUREMENT ++ ++LC_NAME ++% "%d%t%g%t%m%t%f" ++name_fmt "/ ++" ++name_mr "" % "s-ro" ++name_mrs "" % "s-ino" ++name_ms "" % "s-ino" ++END LC_NAME ++ ++LC_ADDRESS ++% "%f%N%a%N%d%N%b%N%s %h %e %r%N%%z %T%N%c%N" ++postal_fmt "/ ++/ ++/ ++/ ++" ++country_name "" % "USA" ++country_post "" % "USA" ++country_ab2 "" % "US" ++country_ab3 "" % "USA" ++country_num 840 ++country_car "" % "USA" ++country_isbn 0 ++% "Esperanto" ++lang_name "" ++lang_ab "" % "eo" ++lang_term "" % "eo" ++lang_lib "" % "eo" ++END LC_ADDRESS +diff -Nur -x '*.orig' -x '*~' langpack-locales-2.9+cvs20090213/SUPPORTED langpack-locales-2.9+cvs20090213.new/SUPPORTED +--- langpack-locales-2.9+cvs20090213/SUPPORTED 2009-02-13 12:31:05.000000000 +0100 ++++ langpack-locales-2.9+cvs20090213.new/SUPPORTED 2009-02-13 12:33:16.176195360 +0100 +@@ -130,6 +130,7 @@ + en_ZA ISO-8859-1 + en_ZW.UTF-8 UTF-8 + en_ZW ISO-8859-1 ++eo_US.UTF-8 UTF-8 + es_AR.UTF-8 UTF-8 + es_AR ISO-8859-1 + es_BO.UTF-8 UTF-8