Skip to content

Commit

Permalink
Merge pull request #24061 from diego-XA/develop
Browse files Browse the repository at this point in the history
Fix for #23221
  • Loading branch information
thatch45 committed May 22, 2015
2 parents d5b5fc1 + d2aec15 commit 55732ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/modules/localemod.py
Expand Up @@ -208,7 +208,7 @@ def gen_locale(locale, **kwargs):

if on_debian or on_gentoo: # file-based search
search = '/usr/share/i18n/SUPPORTED'
valid = __salt__['file.search'](search, '^{0}$'.format(locale))
valid = __salt__['file.search'](search, '^{0}( (UTF-8|ISO-8859-.).?)?$'.format(locale))
else: # directory-based search
if on_suse:
search = '/usr/share/locale'
Expand Down

0 comments on commit 55732ab

Please sign in to comment.