-
Notifications
You must be signed in to change notification settings - Fork 200
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
enum capitalization in cpp_stl generates non-utf8 characters #708
Comments
Great catch, thanks! Looks like we need to test capitalization to be locale-independent. |
@GreyCat |
I've started this thread on SO, but so far the proposed simple solution doesn't quite work for me :( Will try to get to it more... |
Confirming that it works! Thanks, @generalmimon, I've played with it a lot but for some reason that solution at SO never worked for me — but you've demonstrated that it clearly works! |
Using this function has already caused problems in the past, see kaitai-io/kaitai_struct#708.
Avoid the problem with the Turkish locale that we have encountered in the past, see kaitai-io/kaitai_struct#708.
Avoid the problem with the Turkish locale that we have encountered in the past, see kaitai-io/kaitai_struct#708.
I try to generate cpp_stl files from zip.ksy that is already available by running;
kaitai-struct-compiler.bat --target=cpp_stl zip.ksy
Generated zip.h contains enums like this:
As you can see, capitalizing small "i" results in capital İ which is available in my native language (Turkish). However, as you can imagine, it does not compile.. It gives me
There are also macro issues such as
The text was updated successfully, but these errors were encountered: