Skip to content

Commit

Permalink
Use encoding rather than language code for errmsgs
Browse files Browse the repository at this point in the history
  • Loading branch information
frozencemetery committed Jul 28, 2015
1 parent 7c4503f commit e24679f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gssapi/raw/misc.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ class GSSError(Exception, metaclass=GSSErrorRegistry):
given code
"""

msg_encoding = locale.getlocale(locale.LC_MESSAGES)[0] or 'UTF-8'
msg_encoding = locale.getlocale(locale.LC_MESSAGES)[1] or 'UTF-8'

res = []
try:
Expand Down

0 comments on commit e24679f

Please sign in to comment.