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

Output depends on $LANG env variable #12

Open
javalsai opened this issue Sep 11, 2024 · 2 comments
Open

Output depends on $LANG env variable #12

javalsai opened this issue Sep 11, 2024 · 2 comments

Comments

@javalsai
Copy link

Took me a LONG while to debug this, working properly on terminal but not on a hyprland binding...

Basically, unipicker will output properly the chosen character if the $LANG env variable is (apparently) set to an installed locale, if not (empty, c...), it will output an unknown sequence (appears to be only the first byte of the sequence).

image
rg is just like grep

@javalsai
Copy link
Author

Apparently, it's something about sed?

image

@javalsai
Copy link
Author

javalsai commented Sep 11, 2024

My guess is that sed without LANG treats all text as simple byte sequences, meanwhile, when given an "advanced" LANG, it's able to parse UTF sequences and include the whole character in the match group, instead of just one byte.

EDIT: Even something like C.UTF-8 as LANG would work whilst being generic, it's the encoding what matters.

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

No branches or pull requests

1 participant