https://bugs.llvm.org/show_bug.cgi?id=39864
Bug ID: 39864
Summary: No support for -finput-charset other than UTF-8
Product: clang
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected]
Currently, clang does not support any other input character set than UTF-8:
$ clang++ -finput-charset=SHIFT-JIS testtest.cpp
clang-7: error: invalid value 'SHIFT-JIS' in '-finput-charset=SHIFT-JIS'
This comes from Clang.cpp:
// -finput_charset=UTF-8 is default. Reject others
if (Arg *inputCharset = Args.getLastArg(options::OPT_finput_charset_EQ)) {
StringRef value = inputCharset->getValue();
if (!value.equals_lower("utf-8"))
D.Diag(diag::err_drv_invalid_value) << inputCharset->getAsString(Args)
<< value;
}
// -fexec_charset=UTF-8 is default. Reject others
if (Arg *execCharset = Args.getLastArg(options::OPT_fexec_charset_EQ)) {
StringRef value = execCharset->getValue();
if (!value.equals_lower("utf-8"))
D.Diag(diag::err_drv_invalid_value) << execCharset->getAsString(Args)
<< value;
}
This was raised already multiple times on the mailing list:
* http://lists.llvm.org/pipermail/cfe-dev/2011-June/015522.html
* http://lists.llvm.org/pipermail/cfe-dev/2016-September/050814.html
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs