Skip to content

Conversation

@yhyacinth
Copy link

  • Fix FunctionSubstring implementation to count the string data length considering the surrogate pair

If you transform when Unicode supplementary characters is included in the input, the output will be corrupted. I also confirmed that both Xalan-C++ versions 1.10 to 1.12 have the same problem.

I found something suspicious in the XPath FunctionSubstring implementation and fixed it.

Please refer to the issue tracker for a detailed description.

Fix FunctionSubstring implementation to count the string data length
considering the surrogate pair
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