Merge pull request #30015 from alprs/fix-gen_locale_escaped_newline

locale module: don't escape the slash in \n
This commit is contained in:
Mike Place 2015-12-28 08:31:20 -07:00
commit 90611e95f4

View file

@ -276,7 +276,7 @@ def gen_locale(locale, **kwargs):
__salt__['file.replace'](
'/etc/locale.gen',
r'^\s*#\s*{0}\s*$'.format(locale),
'{0}\\n'.format(locale),
'{0}\n'.format(locale),
append_if_not_found=True
)
elif on_ubuntu: