From 592271b86f615de12997de9797eb322a014c5e3c Mon Sep 17 00:00:00 2001 From: Smiler Lee Date: Fri, 2 Oct 2020 08:16:55 +0800 Subject: [PATCH] Fix 'sed: RE error: illegal byte sequence' (#1670) ... which is caused by `realpath.dylib` containing illegal UTF-8 byte sequence, and `LC_CTYPE` won't take effect if `LC_ALL` happens to be set to something other than `C`. This commit fixes issue pyenv/pyenv#1454. Ref: https://stackoverflow.com/a/23584470 --- libexec/pyenv-help | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libexec/pyenv-help b/libexec/pyenv-help index b4e385a3..0bf90abb 100755 --- a/libexec/pyenv-help +++ b/libexec/pyenv-help @@ -27,7 +27,7 @@ command_path() { } extract_initial_comment_block() { - LC_CTYPE=C + LC_ALL=C LANG=C sed -ne " /^#/ !{