diff --git a/debian/local/usr_sbin/locale-gen b/debian/local/usr_sbin/locale-gen index 7fa3d772..1711a4f0 100755 --- a/debian/local/usr_sbin/locale-gen +++ b/debian/local/usr_sbin/locale-gen @@ -23,6 +23,12 @@ is_entry_ok() { fi } +if [ -z "${I18NPATH:-}" ]; then + if [ -d "${USER_LOCALES}" ]; then + I18NPATH="${USER_LOCALES%%/locales*}/" + fi +fi + echo "Generating locales (this might take a while)..." while read -r locale charset; do if [ -z "$locale" ] || [ "${locale#\#}" != "$locale" ]; then continue; fi @@ -46,7 +52,7 @@ while read -r locale charset; do input="$USER_LOCALES/$input" fi fi - localedef -i "$input" -c -f "$charset" -A /usr/share/locale/locale.alias "$locale" || : + I18NPATH="${I18NPATH}" localedef -i "$input" -c -f "$charset" -A /usr/share/locale/locale.alias "$locale" || : echo " done" done < "$LOCALEGEN" echo "Generation complete."
Adding / back to end of the path, so that a locale file is immediately
found.
- Bug#1066887: locales/locale-gen: Locales Cannot... M. Buecher
- Bug#1066887: Patch for locale-gen M. Buecher
- Bug#1066887: ENhance Patch for local-gen M. Buecher
- Bug#1066887: ENhance Patch for local-g... Aurelien Jarno
- Bug#1066887: ENhance Patch for loc... M. Buecher
- Bug#1066887: Patch not sufficient M. Buecher
- Bug#1066887: Patch not sufficient M. Buecher
- Processed: Bug#1066887 marked as pending i... Debian Bug Tracking System
- Bug#1066887: marked as done (locales/local... Debian Bug Tracking System