-
-
Notifications
You must be signed in to change notification settings - Fork 361
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
UTF8TextConverter broken when used with leadingChars #8175
Comments
Thanks for opening your first issue! Please check the CONTRIBUTING documents for some tips about which information should be provided. You can find information of how to do a Pull Request here: https://github.com/pharo-project/pharo/wiki/Contribute-a-fix-to-Pharo
|
Thanks Johan. |
leadingChar is preUnicode and we want to clean our system. |
@Ducasse I don't want to revert the deprecation, I just prefer if the deprecated code keeps working while deprecated. Because of the change, I will be cleaning Grease/Seaside in that area as well such that we use the ZnUTF8Encoder in Pharo instead of the encoder built on top of TextConverter, but after some work I noticed I will need some more time to complete it, and therefore, I prefer that the deprecated code keeps working. But I will try to submit a PR, indeed. |
Yes I understand and we should have paid attention. But sometimes we feel like in an old dark house where you cannot see the wall before empty all the furnitures. |
No worries. I completely understand that. Thanks! |
revert is here but not yet merged: #8191 |
I'm checking it |
This is done |
Describe the bug
The changes for the deprecation of
UTF8TextConverter
(202cd0d) have broken the implementation of the converter itself, specifically in the case of strings in other language environments.The change of
Character>>asUnicode
in the aforementioned commit disregards the presence of a leadingChar but the same code is still used by theUTF8TextConverter
. AasUnicodeForTextConverter
method with the implementation that takes the leadingChar into account should keep the TextConverter working.To Reproduce
Expected behavior
Although deprecated, I expect the
UTF8TextConverter
continue to work as before so we can migrate away from it.Version information:
Pharo 9.0.0
Build information: Pharo-9.0.0+build.986.sha.759c31d569014695a50f4fc42809ada50b92ea54 (64 Bit)
Expected development cost
I will make a PR
Additional context
Broken test in Grease: SeasideSt/Grease#114
The text was updated successfully, but these errors were encountered: