You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extended characters in identifiers may now be specified directly in the input encoding (UTF-8, by default), in addition to the UCN syntax (\uNNNN or \UNNNNNNNN) that is already supported:
static const int π = 3;
int get_naïve_pi() {
return π;
}
Hi @liuxilu. As you indicated, support or lack of support for non-ASCII identifiers is up to the compiler. Arduino IDE simply installs and uses whichever compiler the boards platform specifies. If the platform specifies a version of GCC that supports non-ASCII identifiers, then they will be supported, without any changes needed in Arduino IDE to allow such support. In fact, you will find that some boards platforms already do use such versions of GCC. For example, try compiling your code for a board from the latest version of the "esp32" boards platform.
So I will close this as off topic for this repository. You can submit requests for compiler version updates to the issue trackers of the individual Arduino boards platforms platforms. We already have such requests in official boards platforms:
Describe the request
bool 我;
Describe the current behavior
Compilation error: stray '\346' in program
Arduino IDE version
nightly-20241212
Operating system
Windows, N/A
Operating system version
N/A
Additional context
Update to GCC 10 may work
GCC 10 Changes
Issue checklist
The text was updated successfully, but these errors were encountered: