The bug
The command syntax help which makes suggestions in chat or command blocks is affected by right-to-left languages, converting "[" to "]", "{" to "}" and similar. This causes it to make invalid suggestions.
Affected situations
Likely incomplete
/give
: Suggest "}" for item NBT/setblock
:Suggests "]" for block state properties, "}" for block entity NBT
Suggests block coordinates reversed
Suggests tildes without space:
/setblock ~~
Reproduction steps
Change the language to a right-to-left one, e.g. Arabic (first right-to-left language in the list)
Type the following command in chat
/give @s command_block
❌ It suggests the closing "}" instead of the opening one ("{")
Affects 1.21, and relates to MC-153373 MC-268231 MC-117311
If possible, I'd like to request ownership of this report considering the original reporter has been inactive since 2022, and the report has not been kept up to date since 1.16.3.