Skip to content

Commit

Permalink
Added a hook as a test for LANG=en_DK.UTF-8 variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Top committed Oct 13, 2023
1 parent 908d0ef commit 86614ac
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ def parse_hook_pillow_set_cpath_library_path(ec, eprefix):


def parse_hook_python_bare_set_LANG(ec, eprefix):
"""Set the LANG variable to C.UTF-8 in case it was empty."""
"""Set the LANG variable to en_DK.UTF-8 in case it was empty."""
if ec.name == 'Python' and ec.version =='2.7.18' and os.getenv('LANG') is None:
print_msg("NOTE: The environment variable: LANG will be set to C")
ec.log.info("NOTE: The environment variable: LANG will be set to C")
os.environ['LANG'] = 'C'
print_msg("NOTE: The environment variable: LANG will be set to en_DK.UTF-8")
ec.log.info("NOTE: The environment variable: LANG will be set to en_DK.UTF-8")
os.environ['LANG'] = 'en_DK.UTF-8'


def parse_hook_ucx_eprefix(ec, eprefix):
Expand Down

0 comments on commit 86614ac

Please sign in to comment.