Skip to content
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

gcc on ubuntu (other linuxes?) does not support utf-8 identifiers #3

Closed
hornc opened this issue Oct 9, 2018 · 2 comments
Closed

gcc on ubuntu (other linuxes?) does not support utf-8 identifiers #3

hornc opened this issue Oct 9, 2018 · 2 comments

Comments

@hornc
Copy link
Owner

hornc commented Oct 9, 2018

According to http://gcc.gnu.org/wiki/FAQ#What_is_the_status_of_adding_the_UTF-8_support_for_identifier_names_in_GCC.3F

and the issue tracking progress https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67224

Looks like the current method is to use UCNs: e.g: \uNNNN or \UNNNNNNNN syntax. We can perform a conversion somehow...

No idea yet how this worked in the gcc under OSX.

@hornc hornc changed the title gcc on ubuntu does not support utf-8 identifers gcc on ubuntu (other linuxes?) does not support utf-8 identifiers Oct 9, 2018
@hornc
Copy link
Owner Author

hornc commented Oct 10, 2018

OSX iconv:

iconv --version
iconv (GNU libiconv 1.11)
Copyright (C) 2000-2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Bruno Haible.
iconv --list | grep C99
C99
gcc --version
Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 7.0.2 (clang-700.1.81)
Target: x86_64-apple-darwin14.5.0
Thread model: posix

@hornc
Copy link
Owner Author

hornc commented Oct 25, 2018

should be fixed by #6

@hornc hornc closed this as completed Oct 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant