Skip to content

Commit e24679f

Browse files
Use encoding rather than language code for errmsgs
Closes #72
1 parent 7c4503f commit e24679f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gssapi/raw/misc.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ class GSSError(Exception, metaclass=GSSErrorRegistry):
288288
given code
289289
"""
290290

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

293293
res = []
294294
try:

0 commit comments

Comments
 (0)