-
-
Notifications
You must be signed in to change notification settings - Fork 191
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(i18n): don't assume null-terminated when parsing locale
Currently, locale names are null-terminated. This forces us to copy strings in get_user_locale_preferences which splits the user-provided LANGUAGE variable. Refactor parse_locale to accept a string_view instead of a null-terminated string.
- Loading branch information
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters