Skip to content
  • Bobby Rong's avatar
    gs-lock-plug: Improve utf8 string check in show_status_text · 60ecf7f9
    Bobby Rong authored and Gaël Bonithon's avatar Gaël Bonithon committed
    For example, `g_utf8_strlen ("正", 1)` is 0.
    
    This allows showing translated "Checking..." and "Incorrect password.",
    especially in languages where character takes more than 1 byte.
    
    glib suggests "Use g_utf8_validate() on all text before trying to
    use UTF-8 utility functions with it", so apply the suggestion.
    60ecf7f9