Skip to content

[windows] enforce to use UTF-8 #788

Open
@indraraj26

Description

@indraraj26

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)

  1. execute this in windows
    echo "module.exports = {extends: ['@commitlint/config-conventional']}" > commitlint.config.js

  2. 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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions