-
-
Notifications
You must be signed in to change notification settings - Fork 635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] OpenBSD: Program aborts when LANG
is not set
#716
Comments
No issue when compiling
|
I'm curios how you managed to compile it with clang. Like I would expect my
Is 7.4 != CURRENT ? |
Yes, I'm running on OpenBSD-current (!= version 7.4): clang v16 installed via ports and libc++ updated by robert@ to support C++23 => https://marc.info/?l=openbsd-cvs&m=170626964703685&w=2 With that, I can compile btop with I have also proposed a port for |
Ok good to know that llvm is not effected. This is still a problem since to detect the locale an exception got thrown that wasn't caught by the surrounding catch block. So the program logic is correct, just the exception handling doesn't work properly. Since you are running a newer version, could you try to reproduce this with gcc? This might be worth reporting. |
The program aborts in when the environment variable
LANG
is empty. The try-catch block around it doesn't catch the excpetionTo reproduce:
LANG= ./btop
Since a locale could not be detected the program should exit with a proper message, instead the program aborts.
The text was updated successfully, but these errors were encountered: