From 9cb2dc90a75860cebee24729a30716ff24f60382 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Tue, 31 Jul 2012 23:03:12 -0400 Subject: Fix substring patterns in oh_locale_set(). --- diff --git a/lib/locale.sh b/lib/locale.sh index 3f33b67..da2e4d6 100644 --- a/lib/locale.sh +++ b/lib/locale.sh @@ -38,10 +38,10 @@ oh_locale_set() fi # Try to load the locale. - if [ -f "@@LOCALEDIR@@/${_locale%.}" ]; then - . "@@LOCALEDIR@@/${_locale%.}" - elif [ -f "@@LOCALEDIR@@/${_locale%_}" ]; then - . "@@LOCALEDIR@@/${_locale%_}" + if [ -f "@@LOCALEDIR@@/${_locale%.*}" ]; then + . "@@LOCALEDIR@@/${_locale%.*}" + elif [ -f "@@LOCALEDIR@@/${_locale%_*}" ]; then + . "@@LOCALEDIR@@/${_locale%_*}" else . @@LOCALEDIR@@/en_US fi -- cgit v0.9.1