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

Repair emojis after dump of yaml #421

Merged
merged 1 commit into from Mar 22, 2022
Merged

Repair emojis after dump of yaml #421

merged 1 commit into from Mar 22, 2022

Conversation

ghost
Copy link

@ghost ghost commented Mar 22, 2022

This pull request restores the encoded emojis right after the dump.
This allows developers to use emojis in their YAML translations which was a big issue for as at @renuo. As we would have to manually repair the emojis after normalization.

The code to restore the emojis was taken/extracted from ruby/psych#371 (comment).

This pr can be seen as a quickfix solution for the issue. We are working on a mergeable pr for psych. A solution in this repo seems more likely to be merged.

Relevant issues: ruby/psych#371

@glebm
Copy link
Owner

glebm commented Mar 22, 2022

This workaround is fine by me. The actual fix should probably be in libyaml, not psych.

@glebm glebm merged commit 20f67ea into glebm:main Mar 22, 2022
@ghost
Copy link
Author

ghost commented Mar 22, 2022

True ^^

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

Successfully merging this pull request may close these issues.

1 participant