Skip to content

Unicode (non-ASCII) identifiers support #2632

@liuxilu

Description

@liuxilu

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

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 π;
}

Issue checklist

  • I searched for previous requests in the issue tracker
  • I verified the feature was still missing when using the latest nightly build
  • My request contains all necessary details

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions