Open lushijie opened 5 years ago
May be it's multiple byte cause error here, but I don't know how to fix it.
// thrift-idl.pegjs
SingleLineComment
= '//' comment:(!LineTerminator sc:SourceCharacter { return sc; })* {
return new ast.Comment(comment);
}
Thrift reads the entryPoint as ASCII, not UTF-8. We chose ASCII for inter-language compatibility. Apache Thrift for Python 2, for example, does not handle high glyphs.
I’m not sure we would even entertain changing the encoding of IDL, at least until a thorough review illustrates that all Thrift compliers, at least the ones we’re obliged to use, are all able to use UTF-8.
So by now, what can I do to resolve my problem? Change the entryPoint from UTF-8 to ASCII ?