mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-05 15:41:39 +02:00
c0c7cfacc227d1412b16d3a17b72d31c56ebf560
See https://stackoverflow.com/questions/720052/nslog-incorrect-encoding. The `%s` format placeholder for `NSLog()` expects an encoding other than UTF-8, which leads to garbled Unicode characters when trying to print a UTF-8 encoded string. ```Objective-C NSLog(@"Ä %s %@", "Ä", @("Ä")); ``` prints `Ä √Ñ Ä`. As can be seen in the example above, the workaround is to convert the UTF-8 encoded C-string to an `NSString` object and print that instead. `debug_key()` calls `NSLog()`.
= kitty - the fast, featureful, GPU based, terminal emulator See https://sw.kovidgoyal.net/kitty image:https://circleci.com/gh/kovidgoyal/kitty.svg?style=svg["Build status", link="https://circleci.com/gh/kovidgoyal/kitty"]
Languages
Python
38.6%
C
27.9%
Go
26.4%
Objective-C
5.5%
Shell
1%
Other
0.5%