#1477 Curly braces are flipped in RTL languages

Bug
closed-fixed
GTK (8) RTL (3)
5
2014-08-19
2013-05-21
No

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.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2013-05-21

    How is the RTL mode chosen?

     
    • Yosef Or Boczko

      Yosef Or Boczko - 2013-05-21

      In RTL languages, such as Hebrew:
      LC_ALL=he_IL.UTF-8 /path/to/program

       
      • Neil Hodgson

        Neil Hodgson - 2013-05-21

        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

         
  • Neil Hodgson

    Neil Hodgson - 2013-05-23
    • status: open --> open-fixed
    • assigned_to: Neil Hodgson
     
  • Neil Hodgson

    Neil Hodgson - 2013-05-23

    Fix committed, with stylistic change, as [65a56e].

     

    Related

    Commit: [65a56e]

  • Neil Hodgson

    Neil Hodgson - 2013-06-02
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks