-
Notifications
You must be signed in to change notification settings - Fork 58
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
Does not compile cleanly #61
Comments
related: https://drewdevault.com/2020/09/25/A-story-of-two-libcs.html (explains why the first such warnings can happen at all) |
Hi! Of course I can fix this, but my timeline may not be in sync with yours, so if you want a quick turnaround on this you can submit a pull request yourself to speed things up. Re autogen: yeah, I've missed documenting step I maintain a lot of packages and can't make any promises when I'll circle back to editline. But when I do, I always make sure to go through the list of active issues. Thanks for your report. |
"clean compile" is overrated and often leads to "fixes" that are actually bugs. in this case here the warnings stem from cygwin/glibc's semi-bogus implementation of ctype.h funcs... |
@troglobit I'll post when I have a minute... Weekend is a busy time for me :-)
@rofl0r Actually, glibc implementation of the character classification macros does allow negative indices for the very reason that folks feed the char-type values in those often with the 8th bit set... And having warnings like these is (IMO) better than getting SIGSEGV in those implementations that silently compile yet can't deal with values outside the [-1..255] range in run-time. |
@rofl0r OMG what are you on about? Do you really think I cannot make out the difference between a "fix" and an actual code improvement? Let me be the judge of pull requests in projects I'm the owner of. After all, I built this little project up from its humble beginnings in the Minix project almost 15 years ago ... I'm not a fool. The code in question here is actually very interesting wrt. where we want to take the project going forward (unicode, deeply embedded, ...), so all eyes on stuff like the nasty business I asked you to step it up since you've commented in the past, and even liked comments from other people here who I've blocked (I see it all), but you've never really contributed anything useful yourself. I don't know who you are since you insist on remaining anonymous, so I cannot give you the benefit of a doubt being a friend or an acquaintance, which I guess would be considered favoritism anyway. So my message remains; step it up (carefully) or step off, thank you. |
I tried to build this library with GCC 11 on Cygwin just now, and it does not compile cleanly:
A "char" subscript can actually be a big deal for characters with the 8th bit set (will get converted to a negative "int"), so the warnings do not look great.
Any chance you can fix these please (e.g. by adding explicit
(unsigned char)
casts where necessary)?Thanks.
P.S. BTW the "Build & Install" instructions in README.md call for running
configure
but it is not provided in the source tree if cloned directly from github, and it looks likeautogen.sh
needs to be executed first in order to actually buildconfigure
-- but that step is missing entirely from the instructions.The text was updated successfully, but these errors were encountered: