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

Default LC_TYPE #15

Closed
floatdrop opened this issue May 12, 2017 · 1 comment
Closed

Default LC_TYPE #15

floatdrop opened this issue May 12, 2017 · 1 comment

Comments

@floatdrop
Copy link
Collaborator

pbcopy and pbpaste use locale environment variables to determine the encoding to be used for input and output. For example, absent other locale settings, setting the environment variable LANG=en_US.UTF-8 will cause pbcopy and pbpaste to use UTF-8 for input and output. If an encoding cannot be determined from the locale, the standard C encoding will be used. Use of UTF-8 is recommended. Note that by default the Terminal application uses the UTF-8 encoding and automatically sets the appropriate locale environment variable.

microsoft/vscode#26502 (comment)

Should we set UTF-8 as default encoding, if no specified?

@sindresorhus
Copy link
Owner

We should set it regardless.

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

2 participants