[llvm-bugs] [Bug 39864] New: No support for -finput-charset other than UTF-8
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Dec 3 01:51:33 PST 2018
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: unassignedclangbugs at nondot.org
Reporter: nikolai.kosjar at qt.io
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181203/0ee83b5f/attachment.html>
More information about the llvm-bugs
mailing list