From d51999adf575f2c3d927e520011c7f104a06f72e Mon Sep 17 00:00:00 2001 From: tuzi3040 <28290621+tuzi3040@users.noreply.github.com> Date: Thu, 18 Feb 2021 00:12:45 +0800 Subject: [PATCH] Fix 'sed: RE error: illegal byte sequence' (#1714) ... by unsetting `LC_ALL` and passing `LC_CTYPE=C` to `sed`. This commit fixes issue #1454. --- libexec/pyenv-help | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libexec/pyenv-help b/libexec/pyenv-help index 0bf90abb..c7ff6124 100755 --- a/libexec/pyenv-help +++ b/libexec/pyenv-help @@ -27,8 +27,8 @@ command_path() { } extract_initial_comment_block() { - LC_ALL=C - LANG=C + LC_ALL= \ + LC_CTYPE=C \ sed -ne " /^#/ !{ q