Skip to content

Commit

Permalink
[REF] Convert encoding to lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
mccwdev committed Nov 2, 2023
1 parent 094d304 commit 6c82ac4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitcoinlib/config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
1000000000000000000000000: 'Y',
}

if os.name == 'nt' and locale.getpreferredencoding() != 'UTF-8':
if os.name == 'nt' and locale.getpreferredencoding().lower() != 'utf-8':
# TODO: Find a better windows hack
import _locale
_locale._getdefaultlocale = (lambda *args: ['en_US', 'utf8'])
Expand Down

0 comments on commit 6c82ac4

Please sign in to comment.