Skip to content
  • Federico Mena Quintero's avatar
    (#256): Fix matching of the systemLanguage attribute with the user's locale · ac5b5b1d
    Federico Mena Quintero authored
    The SVG spec says that the systemLanguage attribute is a
    comma-separated list of BCP47 language tags, but librsvg was assuming
    that it was a list of X/Open locale names (e.g. what one would set in
    the LC_MESSAGES or LANG environment variables).
    
    Now, we convert the output of g_get_language_names() to BCP47 language
    tags using the locale_config crate.
    
    Then, we use the language_tags crate to actually match those tags
    against the values from the systemLanguage attribute.
    
    #256
    ac5b5b1d