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

.gitignore encoding is UTF-16 LE from gibo dump #34

Closed
kubosho opened this issue Dec 23, 2018 · 2 comments
Closed

.gitignore encoding is UTF-16 LE from gibo dump #34

kubosho opened this issue Dec 23, 2018 · 2 comments

Comments

@kubosho
Copy link

kubosho commented Dec 23, 2018

My environment

  • OS: Windows 10
  • Shell: PowerShell (Not use WSL)
  • Git version: 2.20.1.windows.1

PowerShell version

Name                           Value
----                           -----
PSVersion                      5.1.17763.134
PSEdition                      Desktop
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}
BuildVersion                   10.0.17763.134
CLRVersion                     4.0.30319.42000
WSManStackVersion              3.0
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1

Expected

.gitignore file encoding is UTF-8 from gibo dump

Actual

.gitignore file encoding is UTF-16 LE from gibo dump

Reproduce

  1. scoop install gibo
  2. Run gibo dump Node Windows >> .gitignore on any directory

Screenshot

gitignore

@kubosho kubosho changed the title The .gitignore encoding is UTF-16 LE from gibo dump .gitignore encoding is UTF-16 LE from gibo dump Dec 23, 2018
@simonwhitaker
Copy link
Owner

Thanks for reporting this!

It seems that this is expected behaviour, since UTF-16 is the default output encoding in Powershell. You can have Powershell commands output a different encoding (e.g. UTF-8) via the $PSDefaultParameterValues preference variable.

@kubosho
Copy link
Author

kubosho commented Dec 23, 2018

Thanks response. I will change default output encoding.

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