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

Normalization fails for some strings #106

Closed
ermshiperete opened this issue Jan 9, 2019 · 1 comment
Closed

Normalization fails for some strings #106

ermshiperete opened this issue Jan 9, 2019 · 1 comment

Comments

@ermshiperete
Copy link
Member

Normalizing a string that decomposes to a string that is exactly 10 bytes longer fails with the following stack trace:

Icu.WarningException : An output string could not be NUL-terminated because output length==destCapacity. 
  at Icu.ExceptionFromErrorCode.ThrowIfError (Icu.ErrorCode e, System.String extraInfo, System.Boolean throwOnWarnings) [0x00301] in /home/eberhard/Develop/icu-dotnet/source/icu.net/ErrorCode.cs:414 
  at Icu.ExceptionFromErrorCode.ThrowIfError (Icu.ErrorCode e) [0x00001] in /home/eberhard/Develop/icu-dotnet/source/icu.net/ErrorCode.cs:369 
  at Icu.NativeMethods.GetString (System.Func`3[T1,T2,TResult] lambda, System.Boolean isUnicodeString, System.Int32 initialLength) [0x00033] in /home/eberhard/Develop/icu-dotnet/source/icu.net/NativeMethods/NativeMethods.cs:426 
  at Icu.NativeMethods.GetUnicodeString (System.Func`3[T1,T2,TResult] lambda, System.Int32 initialLength) [0x00001] in /home/eberhard/Develop/icu-dotnet/source/icu.net/NativeMethods/NativeMethods.cs:414 
  at Icu.Normalization.Normalizer2.Normalize (System.String src) [0x0002c] in /home/eberhard/Develop/icu-dotnet/source/icu.net/Normalization/Normalizer2.cs:226 
@ermshiperete
Copy link
Member Author

Fixed in 2.5.4

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