Bug 12410 - Curly braces are flipped in RTL languages
Summary: Curly braces are flipped in RTL languages
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.1
Hardware: All All
: Normal normal
Target Milestone: master
Assignee: Cody Russell
Depends on:
Reported: 2013-05-27 10:23 UTC by Yosef Or Boczko
Modified: 2017-07-21 01:05 UTC (History)
3 users (show)

Tags: gtk
Is this bug a regression?: ---
Last known good build:

Screenshot (114.88 KB, image/png)
2013-05-28 15:01 UTC, Yosef Or Boczko

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Yosef Or Boczko 2013-05-27 10:23:33 UTC
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:

static int Main(string[] args)
    return 0;

is shown like this in RTL languages (such as Hebrew language: 
`env LC_ALL=he_IL.UTF-8 monodevelop`):

static int Main)string[] args(
return 0;    
Comment 1 Yosef Or Boczko 2013-05-28 15:01:28 UTC
Created attachment 4030 [details]
Comment 2 Mike Krüger 2013-05-31 01:54:19 UTC
Looks like a pango rendering issue.
Comment 3 ahmad13932013 2015-02-23 14:11:40 UTC
I have the same issue, would be great to fix it.
other than that, I really love this IDE
Comment 4 Mike Krüger 2015-02-23 14:21:57 UTC
It's a pango issue :/

@Cody: Can we patch pango (at least on os x) so that curly braces are always displayed as LTR ? Shouldn't affect the bounding box much.
Comment 5 Cody Russell 2016-03-16 21:55:47 UTC

I was looking at this one today, and I'm not able to reproduce the original issue but I'm able to reproduce some other issues. The braces looked to be rendering in the correct direction for me, but all my indentation was lost and it was impossible for me to indent my braces because I can't select to the left side of a brace. In fact, if I hit Cmd-A it becomes obvious that it is drawing the indentation tabs, but on the right side of the braces instead of the left.

Comment 6 Jon Goldberger [MSFT] 2017-07-21 01:05:03 UTC
Based on Cody's comment above, I am marking this a not reproducible. Please file new bug reports for other issues brought up in comment #5