Skip to content
This repository was archived by the owner on Jun 1, 2022. It is now read-only.

Commit 77ee667

Browse files
sfarbotkaoschwald
authored andcommitted
Use UTF-8 encoded country names
1 parent b6820ac commit 77ee667

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

py_GeoIP.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -789,7 +789,7 @@ GeoIP_populate_module(PyObject *m)
789789
CHECK_NULL(tmp = PyUnicode_FromString(GeoIP_country_code[i]));
790790
PyTuple_SET_ITEM(ccode, i, tmp);
791791

792-
CHECK_NULL(tmp = PyUnicode_FromString(GeoIP_country_name[i]));
792+
CHECK_NULL(tmp = PyUnicode_FromString(GeoIP_utf8_country_name[i]));
793793
CHECK(PyDict_SetItemString(cname, GeoIP_country_code[i], tmp));
794794
Py_DECREF(tmp);
795795

0 commit comments

Comments
 (0)