Closed ericzzh closed 3 years ago
tar version bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
elpa-mirror version: ‘elpa-mirror-20210304.1432/’
emacs version: 27.1(9.0)
d645c44 better algorithm to detect bsdtar (Chen Bin)
thanks, but the issue hasn't been cleared.
on my machine, tar --version shows: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
but when run in Emacs, the result is Result: ("tar: Failed to set default locale" "bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzm...")
Show me the full log.
Besides, double check M-x eval-expression (elpamr--is-bsd-tar)
returns t
.
Try run one tar command from the log in shell. What's the output?
M-x eval-expression (elpamr--is-bsd-tar) return nil
I removed the ^ ahead of the regex, and it worked.
the reason is the following message shows ahead of the version result in Emacs's run "tar: Failed to set default locale"
but didn't show in the terminal run.
What's the output of tar --version
?
thanks, but the issue hasn't been cleared.
on my machine, tar --version shows: bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
but when run in Emacs, the result is Result: ("tar: Failed to set default locale" "bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzm...")
as the last comment tar --version on my terminal shows bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6
but under the Emacs the additional message tar: Failed to set default locale shows before the normal result. The message was concated as "tar: Failed to set default locale bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.6" which prevented the bsd tar regex check from passed.
macOS? Have you tried to fix locale first? see https://blog.remibergsma.com/2012/07/10/setting-locales-correctly-on-mac-osx-terminal-application/
Anyway, I added more logic to detect bsd tar, 475f726 fixed bsd tar detection (Chen Bin)
worked! thanks very much! closed.
Hi,
Could you please help check this issue? thanks.