In RTL languages, the text is aligned to the left, but curly braces
are flipped. (right brace looks like left brace and vice versa)
For example, the following code:
int main(int argc, char **argv)
{
return 0;
}
is shown like this in RTL languages:
int main)int argc, char **argv(
}
return 0;
{
The bug exists in Anjuta (with Scintilla plugin) and in MonoDevelop.
The bug was fixed in Geany: http://git.geany.org/geany/commit/src/editor.c?id=e1a1c54d784c3285b536f1608bb98e1355094644
I attached a proposed patch that fixes the bug in anjuta-extras.
How is the RTL mode chosen?
In RTL languages, such as Hebrew:
LC_ALL=he_IL.UTF-8 /path/to/program
I can't reproduce this with Geany or SciTE on Ubuntu 13.04. With Hebrew (lyx) chosen as the input method the following command does not show flipped braces with C++ code or text:
LC_ALL=he_IL.UTF-8 geany
also tried
env LC_ALL=he_IL.UTF-8 geany
env LC_ALL=he_IL.UTF-8 SciTE
OK, its the LANGUAGE variable that changes this:
env LANGUAGE=he_IL.UTF-8 geany
The bug was fixed in Geany:
http://git.geany.org/geany/commit/src/editor.c?id=e1a1c54d784c3285b536f1608bb98e1355094644
Try in Anjuta (with Scintilla plugin) or in MonoDevelop.
Last edit: Yosef Or Boczko 2013-05-22
Fix committed, with stylistic change, as [65a56e].
Related
Commit: [65a56e]