Skip to content

Commit

Permalink
Added a hook as a test for LANG=C variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Top committed Oct 13, 2023
1 parent 08d9276 commit 908d0ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eb_hooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,9 @@ 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."""
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.UTF-8")
ec.log.info("NOTE: The environment variable: LANG will be set to C.UTF-8")
os.environ['LANG'] = 'C.UTF-8'
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'


def parse_hook_ucx_eprefix(ec, eprefix):
Expand Down

0 comments on commit 908d0ef

Please sign in to comment.