• Elliott Hughes's avatar
    Pass BCP-47 tags and not Locale.toString results to ICU. · a9426607
    Elliott Hughes authored
    
    
    ICU can't handle the new toString forms for scripts etc.
    and it's also guaranteed to deal with BCP-47 tags correctly.
    
    Most of the changes in this patch are required to keep
    backwards compatibility for getDisplayCountry string etc. in
    the face of the transformations toLanguageTag performs.
    
    A few tests were changed, but for the better.
    
    The tagalog -> filipino charlie foxtrot will be dealt with
    in a follow up change.
    Co-Authored-By: default avatarNarayan Kamath <narayan@google.com>
    
    Change-Id: Ia7f26d92a0e38c4bbb1d839c0fbd8ad16a473bf5
    a9426607
ScopedIcuLocale.h 1.52 KB