nvda
Use locale.getpreferredencoding rather than locale.getlocale as latter can fail if Python doesn't know the locale
#11384
Merged

Loading