-
-
Notifications
You must be signed in to change notification settings - Fork 157
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
.textlintrc should be encoded as UTF-8 #298
Comments
We can use |
I think
|
@azu How do I reproduce it ? I try to reproduce on my blog( https://github.com/Leko/WEB-EGG ).
It does not throw an error. My |
This issue is based on bug report on twitter.
textlint use rc-loader in days past. Maybe, "throwing error" is caused by rc-loader? |
https://github.com/textlint-ja/textlint-rule-preset-JTF-style/blob/master/src/index.js
It is better that assert this. Silent failing make user confuse. |
I love loud error rather than silent error. |
In this case, if assert .textlintrc encoded as UTF8, markdown should be UTF8. BTW, rc-loader throws error in https://github.com/textlint-ja/textlint-rule-preset-JTF-style/blob/master/src/index.js .
|
I think so too. |
Yes.
|
I got it. |
micnic/uv: Ultrafast UTF-8 data validation looks like good. But, we can drop Node.js 4 support in near future #443 |
Next Node.js will introduce utf8 checker |
buffer.isUtf8(input) require Node.js v18.14.0. textlint 14 treat Node.js 18.14 as the minimal version. |
Hey @azu , is this issue closed or are we still looking for solutions? |
#298 (comment) |
Currently, textlint throw error when
.textlintrc
file is encoded as Shift-JIS.We should check that the
.textlintrc
is UTF-8.Proposal
If
.textlintrc
is not encoded by UTF-8, show error mesage in console.Modules
Edit: Re-open by #509
The text was updated successfully, but these errors were encountered: