Skip to content
Snippets Groups Projects
Commit 60ecf7f9 authored by Bobby Rong's avatar Bobby Rong 🍙 Committed by Gaël Bonithon
Browse files

gs-lock-plug: Improve utf8 string check in show_status_text

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.
parent 09613d94
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment