Issue 83284 - cws gfbfcg has problems with various locales (ar_*, hi_IN, he_IL, ...)
Summary: cws gfbfcg has problems with various locales (ar_*, hi_IN, he_IL, ...)
Status: CLOSED FIXED
Alias: None
Product: gsl
Classification: Code
Component: code (show other issues)
Version: current
Hardware: All Unix, all
: P2 Trivial (vote)
Target Milestone: OOo 2.4
Assignee: stefan.baltzer
QA Contact: issues@l10n
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2007-11-03 23:01 UTC by rene
Modified: 2008-06-19 16:26 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
dialogue in arabic (28.05 KB, image/png)
2007-11-03 23:01 UTC, rene
no flags Details
same dialogue in english OOo without arabic language pack (22.44 KB, image/png)
2007-11-03 23:02 UTC, rene
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description rene 2007-11-03 23:01:14 UTC
[ found in OOG680_m8 ]

Issue 82962 merged a (finally doing something! yay!) arabic localisation into
for 2.3.1 (OOG680_m8).

Unfortunately it seems to have broken ar_* support completely (at least on my
self-built m8 on x86_64, I can't cross-check with Suns i386 or Pavels packages
as they're not available for ar...)

In 2.3.0, when you start OOo using LANG set to ar_SY (or ar_EG, ar_SA etc,
doesn't matter) it starts but of course is not localized in arabic.

In m8, if you start it with ar_* as locale you get "parts" of the crash recovery
 dialogue (in arabic, see first to-be-attached screenshot), even with a clean
profile.
It even happens *without* the arabic language pack installed, in which case you
*still* get that dialogue (of course this time in english).

The interesting this is that there's nothing to recover here and OOo starts fine
with LANG="en_US" or LANG="de_DE.UTF-8".

Regards,

Rene
Comment 1 rene 2007-11-03 23:01:55 UTC
Created attachment 49398 [details]
dialogue in arabic
Comment 2 rene 2007-11-03 23:02:32 UTC
Created attachment 49399 [details]
same dialogue in english OOo without arabic language pack
Comment 3 rene 2007-11-03 23:03:27 UTC
regression compared to 2.3.0 (ar_* started in 2.3.0) -> 2.3.1?
Comment 4 rene 2007-11-03 23:14:42 UTC
Hmm, looks like fontconfig is involved (and it actually does crash):

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x2b0cfd946bf0 (LWP 24482)]
0x00002b0cfaa3d55e in FcFontSetSort () from /usr/lib/libfontconfig.so.1
(gdb) bt
#0  0x00002b0cfaa3d55e in FcFontSetSort () from /usr/lib/libfontconfig.so.1
#1  0x00002b0cfaa3da86 in FcFontSort () from /usr/lib/libfontconfig.so.1

Will try a clean OOG680_m8 build (without and with cws-gfbfcg)

Taking target out for now unless determined what's the exact cause.
Comment 5 rene 2007-11-03 23:19:46 UTC
FWIW:

~$ dpkg -l libfontconfig1
Gewünscht=Unbekannt/Installieren/R=Entfernen/P=Säubern/Halten
| Status=Nicht/Installiert/Config/U=Entpackt/Fehlgeschl. Konf./Halb install.
|/ Fehler?=(kein)/Halten/R=Neuinst notw/X=beide (Status, Fehler: GROSS=schlecht)
||/ Name           Version        Beschreibung
+++-==============-==============-============================================
ii  libfontconfig1 2.4.91-1       generic font configuration library - runtime
Comment 6 rene 2007-11-04 15:34:54 UTC
OK, more info here:

Debians 2.3.0-4 works, I merged the ar locale using the file from Issue 82962 in
-4.5 (together with substituing our current fontconfig patches wwith
cws-gfbfcfgs version) and it crashes again.

It works with a clean OOG680_m8 build and it also "works" with a OOOG680_m8
patched with cws gfbfcfg.. But I get (for ar_SY, not de_DE for example) the
following after the splash:

rene@frodo:~$ LANG="ar_SY" /opt/openoffice.org2.3/program/soffice
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

(doesn't even change after I installed ttf-arabeyes..)

And after reverting the exchange of fontconfig-subsitute.diff though
cws-gfbfcg.diff in ooo-build and rebuilt my ooo-build, it started, too.

(and then I saw Issue 83301...)

hdu: can it be a problem with cws gfbfcfg?
Comment 7 rene 2007-11-05 07:23:26 UTC
hdu: same problem exists with e.g. he_IL, hi_IN, etc:

$ LANG="hi_IN" /opt/openoffice.org2.3/program/soffice
No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

(ttf-devanagari-fonts is installed...)

And indeed, removing cws-gfbfcfg.diff from  ooo-build fixes the crash I
experiecned (looks like something which based on fontconfig-substitute.diff
needs an update... I reverted the change from now... But cws cfbfcg should work
with he_IL, hi_IN, ar_*, and whatever locales are further affected, too..)

Changing title and reassigning to hdu
Comment 8 hdu@apache.org 2007-11-05 13:12:48 UTC
Accepting. Still trying to reproduce it here...
Comment 9 hdu@apache.org 2007-11-06 14:21:58 UTC
Could reproduce it for LANG=hi_IN SAL_USE_VCLPLUGIN=gtk
Root cause was that the result of FcConfigGetFonts() got destroyed.

Fixed in CWS gfbfcfg.
@es: please verify
Comment 10 hdu@apache.org 2007-11-06 14:22:30 UTC
Could reproduce it for LANG=hi_IN SAL_USE_VCLPLUGIN=gtk
Root cause was that the result of FcConfigGetFonts() got destroyed.

Fixed in CWS gfbfcfg.
@es: please verify
Comment 11 hdu@apache.org 2007-12-04 13:49:09 UTC
reassigning for verification
Comment 12 hdu@apache.org 2007-12-04 13:51:56 UTC
Adjusting target to CWS.
Comment 13 stefan.baltzer 2007-12-10 15:18:57 UTC
SBA: Verified in CWS gfbfcfg.
Comment 14 stefan.baltzer 2008-06-19 16:26:28 UTC
Still OK in DEV300_m17. Closed.