Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make spawnPipe to use system's locale encoding #346

Merged
merged 2 commits into from
May 30, 2020

Conversation

psibi
Copy link
Member

@psibi psibi commented May 29, 2020

Add a function named spawnPipeWithNoEncoding for people who might want
to use binary handles.

Fixes #338

Checklist

psibi added 2 commits May 29, 2020 22:21
Add a function named spawnPipeWithNoEncoding for people who might want
to use binary handles.

Fixes xmonad#338
@byorgey byorgey merged commit 4aa6f22 into xmonad:master May 30, 2020
@byorgey
Copy link
Member

byorgey commented May 30, 2020

Makes sense to me.

ivanbrennan added a commit to ivanbrennan/nixbox that referenced this pull request Sep 8, 2020
This update, along with a recent change in xmonad-contrib, fixes the
handling of unicode characters piped from xmonad to xmobar, allowing me
to use a fancy dot · to indicate when the layout has been toggled to
fullscreen.

xmonad/xmonad-contrib#346
https://github.com/jaor/xmobar/pull/482
@liskin
Copy link
Member

liskin commented Feb 16, 2021

This unfortunately breaks many configs that use spawnPipe and dynamicLogString together, because dynamicLogString unfortunately expects a binary handle and encodes its output as utf8, so this then results in double-utf8-encoded output. See #338 (comment), let's continue the discussion there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Proposal: Migrate the usage of spawnPipe function to spawnPipeWithLocaleEncoding
3 participants