Bug 9205

Summary: Gmail Hebrew and Arabic localizations don't support Safari
Product: WebKit Reporter: mitz
Component: New BugsAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: a.bob, ggaren, ian, oster, playmobil, xslf
Priority: P2 Keywords: GoogleBug
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
URL: http://mail.google.com/
Bug Depends on: 9234    
Bug Blocks:    

Description mitz 2006-06-01 05:09:41 PDT
Go to Gmail Settings > General, choose Hebrew (&#1506;&#1489;&#1512;&#1497;&#1514;) as the Gmail display language and click Save Changes. Once Gmail reloads in Hebrew, it looks like "&$" (sometimes followed by stray markup) appears all over the place (seems to happen before LTR embedded text).

(To return to your favorite, supported LTR language, click the third blue link from the left at the top to get to Settings, then choose the language from the pop-up, and click the left button at the bottom).
Comment 1 David Phillip Oster 2006-06-01 09:53:34 PDT
Hebrew GMail performs correctly in Macintosh Firefox. Google bug id=193318
Comment 2 mitz 2006-06-02 06:59:47 PDT
The first problem seems to be that JavaScriptCore's String.prototype.replace doesn't support the '$&' replacement code.
Comment 3 mitz 2006-06-02 07:19:24 PDT
The workaround for Gmail is to use $0 instead of $& in your replacement strings (Firefox doesn't recognize $0 so you'd need a different code path for WebKit).
Comment 4 David Phillip Oster 2006-06-02 14:09:11 PDT
I've entered your diagnosis and workaround on the Google internal bug database entry for Google's bug id=193318
Comment 5 Jeremy Moskovich 2008-11-23 20:22:22 PST
It appears that the underlying issue was fixed and I can't reproduce this in gmail, can this bug be closed?
Comment 6 Shoshannah Forbes 2008-11-23 22:29:16 PST
Hi Jeremy- It's Shoshannah :-)
This bug is based on a report I passed on to mitz at the days of the inital RTL gmail release.
This bug is now long gone, so from me it's ok if it's closed. Mitz- do you object?
Comment 7 mitz 2008-11-23 22:31:46 PST
Closing as there do not appear to be any issues besides long-fixed bug 9234.