Linux: Ensure that the python embedded in the kitty binary build always uses UTF-8 mode
Fixes #924
This commit is contained in:
parent
e39635ea16
commit
9963e78636
@ -12,6 +12,9 @@ Changelog
|
||||
- Add a new ``neighboring_window`` function to switch to neighboring
|
||||
windows in the current layout, similar to window movement in vim (:iss:`916`)
|
||||
|
||||
- Linux: Ensure that the python embedded in the kitty binary build always uses
|
||||
UTF-8 mode (:iss:`924`)
|
||||
|
||||
|
||||
0.12.1 [2018-09-08]
|
||||
------------------------------
|
||||
|
||||
@ -153,6 +153,10 @@ int main(int argc, char *argv[]) {
|
||||
final_argv[i+1] = argv[i];
|
||||
num_args++;
|
||||
}
|
||||
#if PY_VERSION_HEX >= 0x03070000
|
||||
// Always use UTF-8 mode, see https://github.com/kovidgoyal/kitty/issues/924
|
||||
Py_UTF8Mode = 1;
|
||||
#endif
|
||||
for (i = 0; i < num_args; i++) {
|
||||
argvw[i] = Py_DecodeLocale(final_argv[i], NULL);
|
||||
if (argvw[i] == NULL) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user