Bug 171836

Summary: non-english characters in file names in recent documents menu are displayed as squares
Product: [Fedora] Fedora Reporter: Pavel Rosenboim <pavel1r>
Component: openoffice.orgAssignee: Caolan McNamara <caolanm>
Status: CLOSED DUPLICATE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 2.0.1-143.2.1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-09 13:14:20 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
file with name in russian
none
working for me
none
fc4 update of 2.0.1-143.2.1
none
fc-match
none
output of fc-match --verbose --sort "Sans"
none
bzipped font file none

Description Pavel Rosenboim 2005-10-26 21:17:46 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.0.7-1.1.fc4 Firefox/1.0.7

Description of problem:
After closing file whose name contains non-english characters, the entry in File /"Recent Documents" menu is displayed as squares.

Version-Release number of selected component (if applicable):
2.0.0-3.2.1

How reproducible:
Always

Steps to Reproduce:
1. Create new file
2. Save it, giving it name with non-english characters (I tryed cyrillic and hebrew characters), then close the file
3. Open File/"Recent Documents" menu
  

Actual Results:  Non-english characters in the file name displayed as squares.

Expected Results:  File name should be displayed correctly.

Additional info:

This did work in previous version (1.9.125)

Comment 1 Caolan McNamara 2005-10-27 08:39:42 UTC
Can you attach a tiny sample document with a known "bad" name ?

Comment 2 Pavel Rosenboim 2005-10-27 08:56:49 UTC
Created attachment 120453 [details]
file with name in russian

What really matters is a file name and not a content

Comment 3 Caolan McNamara 2005-10-27 09:11:06 UTC
Created attachment 120455 [details]
working for me

looking ok for me. So...

1) KDE or GNOME ?
2) what's the output of locale ?

This might be a font/glyph substitution thing which depends on what font is
being user for the UI

Comment 4 Pavel Rosenboim 2005-10-27 09:19:46 UTC
GNOME.

[pavel@pashar ~]$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

The change in behaviour happened after latest openoffice update.


Comment 5 Caolan McNamara 2005-10-27 09:30:19 UTC
very odd, after you open the document does 

a) the title bar have the filename displayed correctly and 
b) does file->Properties->general have the filename displayed correctly ?

Comment 6 Pavel Rosenboim 2005-10-27 09:37:18 UTC
The title bar is correct, but properties are not.

Comment 7 Caolan McNamara 2005-10-27 09:49:21 UTC
I wonder if unselecting tools->options->openoffice.org->view->use system font
for user interface makes any difference

Comment 8 Pavel Rosenboim 2005-10-27 09:55:34 UTC
It makes. Everything is displayed correctly now, and it also makes things a bit
faster. 

Comment 9 Caolan McNamara 2005-10-27 10:02:08 UTC
I wonder if you know what your "normal" gnome system font is ?

Comment 10 Pavel Rosenboim 2005-10-27 10:05:29 UTC
Application and Desktop fonts: Sans/10
Window title: Sans Bold/10
Terminal: Monospace/10

This supposed to be a default, I never changed it.

Comment 11 Caolan McNamara 2005-10-27 10:40:05 UTC
Sans is an alias of course, try 

> fc-match --verbose --sort "Sans"

to see what the matches are in order of preference

my "Sans" font is Luxi Sans, and trying "Bitstream Vera Sans" work as well

Comment 12 Pavel Rosenboim 2005-10-27 11:00:41 UTC
Sorry, I dont have an fc-match. Which package has it?

Comment 13 Pavel Rosenboim 2005-10-27 15:15:47 UTC
BTW, I just tried version 1.9.125 and final (2.0) release downloaded from OOo
site - both display things properly even when "use system font for user
interface" is selected.

Comment 14 Caolan McNamara 2005-12-05 11:15:41 UTC
Created attachment 121845 [details]
fc4 update of 2.0.1-143.2.1

Comment 15 Caolan McNamara 2005-12-05 11:16:16 UTC
Created attachment 121846 [details]
fc-match

Comment 16 Caolan McNamara 2005-12-05 11:18:59 UTC
Looks ok for me fc-4 with latest update for fc4 like the screenshot, if this
problem persists for you with >= 2.0.1-143.2.1 can you download the fc-match
attached here and run 

chmod u+x fc-match
./fc-match --verbose --sort "Sans"

Comment 17 Pavel Rosenboim 2005-12-05 18:40:16 UTC
I tried version 2.0.1-0.142.3.1. I hope you meant this version, since I could
not find version 2.0.1-143.2.1 in either updates or updates-testing. This
version actually makes things worse: now the menu is garbled even when "Use
system fonts" is unchecked.

Comment 18 Pavel Rosenboim 2005-12-05 18:41:56 UTC
Created attachment 121861 [details]
output of fc-match --verbose --sort "Sans"

Comment 19 Caolan McNamara 2005-12-06 08:02:20 UTC
ok, that's good output from fc-match. I see that "Sans" matches
"/usr/share/fonts/java/LucidaSansRegular.ttf" 

So I'd like to get that font for myself to see if that will reproduce things.
Where did it come from ?

> rpm -qf /usr/share/fonts/java/LucidaSansRegular.ttf

the sun jdk ?

C.

Comment 20 Pavel Rosenboim 2005-12-06 08:07:25 UTC
java-1.5.0-sun-fonts-1.5.0.05-1jpp

Yes, it's sun jdk.


Comment 21 Pavel Rosenboim 2005-12-06 08:28:38 UTC
Created attachment 121897 [details]
bzipped font file

Comment 22 Pavel Rosenboim 2005-12-06 13:26:25 UTC
2.0.1-143.2.1 from updates still has the problem.

Comment 23 Caolan McNamara 2005-12-06 13:42:45 UTC
It could be hard to track this one down, Lucida Sans hasn't got the glyphs
needed, so glyph substitution occurs, for some reason it doesn't work for you,
but does for me. You have a large stack of fonts installed which I don't, so
presumably the problem is related to one of them.

I assume that typing the same letters in gedit and setting
edit->preferences->fonts->editor font to "Sans" does work ?

Comment 24 Pavel Rosenboim 2005-12-06 13:50:42 UTC
Yes, it works.
I wonder what could be a difference between fedora build and OO.o build, since
version 2.0.1-143 (2.0.1 RC2) downloaded from www.openoffice.org does not have
this issue.

Comment 25 Caolan McNamara 2005-12-06 13:57:36 UTC
Upstream doesn't have support for fontconfig glyph replacement, that's the
irony. Not using fontconfig means that upstream OOo cannot handle missing glyphs
as well as redhat OOo can (obviously in general, and not in this case) e.g. for
asian and indic text.

Comment 26 Caolan McNamara 2006-02-09 13:14:20 UTC
It's real likely that this is part of the bug 180124 problem. Where multi pass
glyph substitution comes unstuck

*** This bug has been marked as a duplicate of 180124 ***