You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i create manually commitlint.config.js then i paste module.exports = {extends: ['@commitlint/config-conventional']} then it is taking UTF-8
Expected Behavior
Is there any way to force echo command to use UTF-8, if it is not possible you can close this.
Current Behavior
When you execute below in windows it will always be in different encoding instead of UTF-8
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
Affected packages
[x ] cli
core
prompt
[x ] config-angular
Possible Solution
Steps to Reproduce (for bugs)
execute this in windows
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
check the encoding.
commitlint.config.js
```js
```
Context
Your Environment
Executable
Version
commitlint --version
VERSION
8.1.0
git --version
VERSION
git version 2.19.1.windows.1
node --version
VERSION
v10.16.0
Thank you
The text was updated successfully, but these errors were encountered:
I personally don't use win32 at all so I am not sure how to achieve this (as I can't test proposed solutions). According to Stackoverflow there is the chcp command to change cmd.exe output to utf-8.
I think the appropriate fix for this would be to add a win32-specific setup step detailing this. Want to lend a hand and test if this fixes the issue?
When i create manually commitlint.config.js then i paste module.exports = {extends: ['@commitlint/config-conventional']} then it is taking UTF-8
Expected Behavior
Is there any way to force echo command to use UTF-8, if it is not possible you can close this.
Current Behavior
When you execute below in windows it will always be in different encoding instead of UTF-8
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
Affected packages
Possible Solution
Steps to Reproduce (for bugs)
execute this in windows
echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js
check the encoding.
commitlint.config.js
```js ```Context
Your Environment
commitlint --version
Thank you
The text was updated successfully, but these errors were encountered: