mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
use explicit utf-8 decoding (#25532)
since salt.utils.sdecode() is bias toward system encoding(defaults to cp1252) and it differs from the strings returned from _get_reg_software() (utf-8) (#25532)
This commit is contained in:
parent
3c32b0b669
commit
4b7dc96919
1 changed files with 1 additions and 1 deletions
|
@ -646,7 +646,7 @@ def _get_name_map():
|
|||
u_name_map = {}
|
||||
name_map = get_repo_data().get('name_map', {})
|
||||
for k in name_map.keys():
|
||||
u_name_map[salt.utils.sdecode(k)] = name_map[k]
|
||||
u_name_map[k.decode('utf-8')] = name_map[k]
|
||||
return u_name_map
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue