Skip to content
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

Switch of UTF-8 Flag Before Using Encode::from_to() #12

Open
gflohr opened this issue Jul 18, 2023 · 0 comments
Open

Switch of UTF-8 Flag Before Using Encode::from_to() #12

gflohr opened this issue Jul 18, 2023 · 0 comments

Comments

@gflohr
Copy link
Owner

gflohr commented Jul 18, 2023

The method Locale::RecodeData::Encode::_recode() calls Encode::from_to() which requires its first argument to have the utf-8 flag switched off. Historically that was possible by the bytes pragma but that no longer works. Instead, switch the flag off explicitely.

Otherwise, the method throws an exception "Wide character /include/path/Locale/RecodeData/_Encode line 46".

Also check for other occurences of the bytes pragma which is now deprecated.

gflohr added a commit to gflohr/qgoda that referenced this issue Jul 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant