LANG=/foo confuses intl::dgettext
Describe the bug
One of the possible values of LANG
is a path to a localedef file,
starting with a "/" character. Doing this causes cmucl to enter a
state where Ctrl-C doesn't work.
To Reproduce
Steps to reproduce the behavior:
(intl:setlocale "cmucl" "/tmp/junk")
(intl:dgettext "cmucl" "foo")
- Cmucl hangs and Ctrl-C doesn't break
Expected behavior
Cmucl should not hang doing this. It should either produce an error or handle it correctly.
Desktop (please complete the following information):
- OS: Linux
- Version: snapshot-2021-07
Edited by Raymond Toy