Future of musl locale/strerror(). In LC_MESSAGES=C, strerror(ENOENT) = ?
-
Show this thread
-
Context for this lovely bikeshed here: http://www.openwall.com/lists/musl/2018/03/05/2 …
1 reply 0 retweets 0 likesShow this thread -
And would you change answer if I told you option 1 makes libc 1k bigger, 2 makes it 1k smaller?
2 replies 0 retweets 1 likeShow this thread -
Replying to @RichFelker
If including most localizations only costs ~1-2k that seems like a fairly small price pay for better internationalization support out of the box. Save a lot of developer time, and concern. But I guess embedded folks maybe against it.
1 reply 0 retweets 0 likes -
Replying to @valarauca1
Obviously things are oversimplified in a tweet. The question is whether to keep English-phrase error msgs in C locale or use the E* codes (more 'language-agnostic').
2 replies 0 retweets 0 likes -
Replying to @RichFelker @valarauca1
wouldn't that be contrary to the expectation for e.g. LC_ALL=C ?
1 reply 0 retweets 0 likes -
Replying to @mfukar @valarauca1
Maybe depending on what your expectations are. There's no std requirement that they be English messages.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @valarauca1
No, but a locale where strerror(ENOENT)="ENOENT" is kinda useless by default. It is meaningless as localised messages in a (default) language.
1 reply 0 retweets 0 likes -
Replying to @mfukar @valarauca1
In the past I'd heard the opposite from a lot of people - that the E* codes were more useful because they could look them up in docs/manpages, whereas the English msgs required figuring out which E* code they came from.
1 reply 0 retweets 0 likes -
Replying to @RichFelker @valarauca1
I don't disagree with that, been there too.
1 reply 0 retweets 0 likes
For that reason, I tend to like strerror(EFOO)="EFOO". Also reducing anglocentricism. But I know it's unconventional & likely controversial; that's why I'm trying to get a feel for ppls opinions on it.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.