Skip to content

first step to support UTF-8 by accepting characters in the upper half of 8bit - #16

Open
RREE wants to merge 1 commit into
onox:masterfrom
RREE:utf8-1st-step
Open

first step to support UTF-8 by accepting characters in the upper half of 8bit#16
RREE wants to merge 1 commit into
onox:masterfrom
RREE:utf8-1st-step

Conversation

@RREE

@RREE RREE commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

I had to comment out No_Implementation_Extensions in order to keep the SPARK_Mode aspects.

The check for control characters in Read_String inhibited the reading of UTF-8 start bytes which all have the most significant bit set. Without that check we can read at least standard encoded UTF-8 string. This way I can handle German umlauts and sharp s.

I still did not cover \u encoded strings. Is probably difficult as we have to add string to UTF-8 conversion in the json library.

…haracters in the upper half of 8bits; 2 test cases
@RREE

RREE commented Aug 4, 2026

Copy link
Copy Markdown
Contributor Author

All builds on Linux and Windows stop with the same error:

cd tests && ADAFLAGS="--coverage -gnata" alr build --development --profiles="*=development"
ERROR: Unrecognized option '--profiles=*=development' (command/topic "build").

I don't know how to fix that. It does not stem from my pull request

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

Successfully merging this pull request may close these issues.

1 participant