Merge pull request #7033 from symless/SYNERGY-928-Wrong-encoding-from-macos
SYNERGY-928 Wrong encoding form macOS
This commit is contained in:
commit
974652494a
2 changed files with 10 additions and 5 deletions
|
|
@ -6,7 +6,7 @@ Bug fixes:
|
||||||
- #7012 Fix natural horizontal scrolling on Mac client
|
- #7012 Fix natural horizontal scrolling on Mac client
|
||||||
- #6997 Allow Windows to go to sleep depending on system preferences
|
- #6997 Allow Windows to go to sleep depending on system preferences
|
||||||
- #7001 Add option to prevent computer from going to sleep
|
- #7001 Add option to prevent computer from going to sleep
|
||||||
- #7029 Wrong encoding for text copied between linux and windows
|
- #7029 | #7033 Wrong encoding for text copied between linux and windows
|
||||||
- #7015 Fix Windows service not starting up after sleep
|
- #7015 Fix Windows service not starting up after sleep
|
||||||
|
|
||||||
Enhancements:
|
Enhancements:
|
||||||
|
|
|
||||||
|
|
@ -83,13 +83,18 @@ OSXClipboardHTMLConverter::convertString(
|
||||||
String
|
String
|
||||||
OSXClipboardHTMLConverter::doFromIClipboard(const String& data) const
|
OSXClipboardHTMLConverter::doFromIClipboard(const String& data) const
|
||||||
{
|
{
|
||||||
return convertString(data, kCFStringEncodingUTF8,
|
return data;
|
||||||
CFStringGetSystemEncoding());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
String
|
String
|
||||||
OSXClipboardHTMLConverter::doToIClipboard(const String& data) const
|
OSXClipboardHTMLConverter::doToIClipboard(const String& data) const
|
||||||
{
|
{
|
||||||
return convertString(data, CFStringGetSystemEncoding(),
|
if (Unicode::isUTF8(data))
|
||||||
kCFStringEncodingUTF8);
|
{
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return convertString(data, CFStringGetSystemEncoding(), kCFStringEncodingUTF8);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue