Skip to content

Unable to handle utf-8 #26

@themadsens

Description

@themadsens

It seems that lemonade cannot handle utf-8 in and out of the clipboard. At least on MacOS.

As long as lemonade is used for both directions it seems OK, but using pbcopy or the system 'Copy' or 'Paste' in conjunction does not work

image

OS data according to screenfetch
OS: 64bit Mac OS X 10.12.6 16G29
Kernel: x86_64 Darwin 16.7.0

In binary

[fmmbp thm-dotfiles]$ echo 'Blåbærgrød' | pbcopy
[fmmbp thm-dotfiles]$ pbpaste | hexdump -C
00000000  42 6c c3 a5 62 c3 a6 72  67 72 c3 b8 64 0a        |Bl..b..rgr..d.|
0000000e
[fmmbp thm-dotfiles]$ lemonade paste | hexdump -C
00000000  42 6c 8c 62 be 72 67 72  bf 64 0a                 |Bl.b.rgr.d.|
0000000b
[fmmbp thm-dotfiles]$ echo 'Blåbærgrød' | hexdump -C
00000000  42 6c c3 a5 62 c3 a6 72  67 72 c3 b8 64 0a        |Bl..b..rgr..d.|
0000000e
[fmmbp thm-dotfiles]$ echo 'Blåbærgrød' | lemonade copy
[fmmbp thm-dotfiles]$ pbpaste | hexdump -C
00000000  42 6c e2 88 9a e2 80 a2  62 e2 88 9a c2 b6 72 67  |Bl......b.....rg|
00000010  72 e2 88 9a e2 88 8f 64  0a                       |r......d.|
00000019
[fmmbp thm-dotfiles]$ lemonade paste | hexdump -C
00000000  42 6c c3 a5 62 c3 a6 72  67 72 c3 b8 64 0a        |Bl..b..rgr..d.|
0000000e

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions