mirror of
https://github.com/qvacua/vimr.git
synced 2024-12-26 23:36:08 +03:00
GH-333 Set $LANG to utf-8 for system clipboard
This commit is contained in:
parent
672f45488b
commit
ed5ec0e422
@ -129,6 +129,14 @@ static CFDataRef local_server_callback(CFMessagePortRef local, SInt32 msgid, CFD
|
|||||||
_neoVimServerTask.standardError = nullFileHandle;
|
_neoVimServerTask.standardError = nullFileHandle;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Set $LANG to en_US.UTF-8 such that the copied text to the system clipboard is not garbled.
|
||||||
|
NSMutableDictionary<NSString *, NSString *> *environment = _neoVimServerTask.environment.mutableCopy;
|
||||||
|
if (environment == nil) {
|
||||||
|
environment = NSMutableDictionary.new;
|
||||||
|
}
|
||||||
|
environment[@"LANG"] = @"en_US.UTF-8";
|
||||||
|
_neoVimServerTask.environment = environment;
|
||||||
|
|
||||||
_neoVimServerTask.standardInput = inputPipe;
|
_neoVimServerTask.standardInput = inputPipe;
|
||||||
_neoVimServerTask.currentDirectoryPath = NSHomeDirectory();
|
_neoVimServerTask.currentDirectoryPath = NSHomeDirectory();
|
||||||
_neoVimServerTask.launchPath = shellPath;
|
_neoVimServerTask.launchPath = shellPath;
|
||||||
|
Loading…
Reference in New Issue
Block a user