kaitai_struct_compiler icon indicating copy to clipboard operation
kaitai_struct_compiler copied to clipboard

Use hex escape sequences instead of octal escape sequences

Open Mingun opened this issue 1 year ago • 1 comments

Octal escape sequences the least used form of escape sequences and hex supported almost everywhere. The only outsiders are Java (does not support \xHH form), C++ (unlimited length, so have problems with followed digits) and Rust (limited range of representable characters -- only [0x00; 0x7f]).

Seriously, who decided that using octal escape sequences by default was a good idea?

I've checked all languages and everything (except Java and Rust) are support \xHH form.

Mingun avatar Mar 28 '24 16:03 Mingun

This is ready for review.

Mingun avatar Mar 28 '24 17:03 Mingun