arduino / arduino/Arduino

"preproc.substitute_unicode=false" works properly only if sketch is not saved

Open
#7,030 4 comments 0 reactions 0 assignees View on GitHub
Component: IDE Type: Bug
Dominant language
Java
Stars
14.6k
Forks
7k
PR merge metrics
No merged PRs in 30d

Description

Hi, dear!
Setting "preproc.substitute_unicode=false" works properly only if sketch is not saved.
If sketch is saved, some functions, such as "lcd.print(String)", still send a unicode (two bytes char) to display.
If sketch is not saved (any change, like one more space in comment string) - it's all right.
PS. I'm using Cyrillic codepage 1251
PPS. Arduino IDE 1.8.5 (and older)

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue in Arduino IDE 1.x with preproc.substitute_unicode=false, comparing a saved sketch with an unsaved sketch and lcd.print(String) using Cyrillic codepage 1251. Trace the preprocessing path and identify why saved sketches differ; done means Unicode substitution is consistently disabled in both states.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.