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

Turkish localization #20

Open
ekinakyurek opened this issue Nov 22, 2018 · 1 comment
Open

Turkish localization #20

ekinakyurek opened this issue Nov 22, 2018 · 1 comment

Comments

@ekinakyurek
Copy link

I couldn't make Turkish localization work. Could you help me ?

julia> using StrICU
julia> set_locale!("tr_TR")
julia> StrICU.tolower("AI") #"aı"
ERROR: failed to map case
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] tolower(::String) at /Users/ekin/.julia/packages/StrICU/7xZCC/src/ucasemap.jl:40
 [3] top-level scope at none:0
@ScottPJones
Copy link
Member

I'll need to add tests for using String type.
The ICU library uses UTF-16, so you should also be using the Strs.jl package, with the UTF16Str type.
That will work correctly (and be faster for many things than using String).

julia> typeof(s)
UTF16Str

julia> StrICU.tolower(s)
""

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

2 participants