mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-27 22:19:02 +00:00
nmcli: use get_best_parsable_locale() to support UTF-8 connection names (#11742)
* nmcli: start locale fix - normalize run_command environ to LANGUAGE=C, LC_ALL=C
Work in progress - issue #10384 (UTF-8 conn_name support) requires deeper
investigation beyond simple locale variable normalization.
* nmcli: use get_best_parsable_locale() to support UTF-8 connection names
Fixes issue where UTF-8 connection names (e.g. Chinese characters) were
corrupted to '????' when LC_ALL=C forced ASCII encoding, causing
connection_exists() to always return False for non-ASCII names.
* add changelog fragment for PR #11742
---------
(cherry picked from commit bdd3174563)
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
6 lines
418 B
YAML
6 lines
418 B
YAML
bugfixes:
|
|
- nmcli - use ``get_best_parsable_locale()`` to set locale environment for ``run_command()`` calls,
|
|
fixing UTF-8 connection names being corrupted to ``????`` under ``LC_ALL=C``
|
|
(https://github.com/ansible-collections/community.general/issues/10384,
|
|
https://github.com/ansible-collections/community.general/issues/11737,
|
|
https://github.com/ansible-collections/community.general/pull/11742).
|