Created
October 10, 2019 03:20
-
-
Save jorgicio/d094b673a99a721697bd8ee5e82f72cf to your computer and use it in GitHub Desktop.
/etc/portage/patches/x11-terms/kitty-0.14.6/kitty-fix-surrogate-invalid.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -Naur a/kitty/main.py b/kitty/main.py | |
--- a/kitty/main.py 2019-10-10 00:12:43.425552669 -0300 | |
+++ b/kitty/main.py 2019-10-10 00:14:51.659220009 -0300 | |
@@ -296,6 +296,10 @@ | |
os.environ['PATH'] = os.pathsep.join(existing_paths) | |
args = sys.argv[1:] | |
+ _args = [] | |
+ for a in args: | |
+ _args.append(a.encode('utf-8','surrogateescape').decode('utf-8')) | |
+ args = _args | |
if is_macos and os.environ.pop('KITTY_LAUNCHED_BY_LAUNCH_SERVICES', None) == '1': | |
os.chdir(os.path.expanduser('~')) | |
args = macos_cmdline(args) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment