Comments
-
Greg Hurrell
Thanks for the report. Looks like this only happens when run as a Launch Agent. I suspect the cause is no
LANG
environment variable being set, causingpbcopy
to revert to default C encoding (see thepbcopy
man page).We might be able to get around this by tweaking the launchd plist file to set an appropriate
LANG
setting. -
Greg Hurrell
Yep, looks like you can get it to work by modifying the plist, adding a section like:
diff --git a/com.wincent.clipper.plist b/com.wincent.clipper.plist index d37bb09..921eb1d 100644 --- a/com.wincent.clipper.plist +++ b/com.wincent.clipper.plist @@ -12,6 +12,11 @@ <string>--port</string> <string>8377</string> </array> + <key>EnvironmentVariables</key> + <dict> + <key>LANG</key> + <string>en_US.UTF-8</string> + </dict> <key>KeepAlive</key> <true/> <key>LimitLoadToSessionType</key>
Where this file is depends on how you installed. If you installed using Homebrew, it's at
/usr/local/Cellar/clipper/0.1/homebrew.mxcl.clipper.plist
and you'll be able to fix things by stopping Clipper:$ launchctl unload /usr/local/Cellar/clipper/0.1/homebrew.mxcl.clipper.plist
Editing the property list:
$ vim /usr/local/Cellar/clipper/0.1/homebrew.mxcl.clipper.plist
And restarting Clipper:
$ launchctl load -w -S Aqua /usr/local/Cellar/clipper/0.1/homebrew.mxcl.clipper.plist
If you installed it yourself, the steps are much the same but the property list most likely is at
~/Library/LaunchAgents/com.wincent.clipper.plist
.UTF-8 seems like a reasonable default — and it's what the
pbcopy
man page recommends — so I'll push an update to the Clipper repo that includes this in the sample plist file, and probably also a pull request to update the Homebrew recipe as well. -
Greg Hurrell
0.2 is released, and here is the matching Homebrew pull request.
-
Greg Hurrell
Status changed:
- From: new
- To: closed
Add a comment
Comments are now closed for this issue.