Bug 114735 - Digraph not displayed in configuration
Summary: Digraph not displayed in configuration
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Beta 4
Hardware: 64bit All
: P5 - None : Major
Target Milestone: ---
Assignee: Michal Zugec
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-01 15:08 UTC by Klaus Singvogel
Modified: 2005-09-12 12:53 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
screenshot of yast2 (87.48 KB, image/jpeg)
2005-09-02 10:00 UTC, Klaus Singvogel
Details
fixed cups_de (3.06 KB, application/octet-stream)
2005-09-02 13:51 UTC, Kerry OConnor
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Singvogel 2005-09-01 15:08:12 UTC
I installed in German mode.  
  
When installation comes to printer configuration, I noticed that some text is  
written in German. But the Digraphs (Umlaut) was displayed as a block  
character. So I saw: Gr[][][][]e in the cofiguration. 
 
Yast2 -> Hardware -> Drucker 
Select a printer -> Filtereinstellungen -> Bearbeiten -> Page Size 
And then you can see: "Benutzerspezifische Gr[][][][]e"
Comment 1 Michal Zugec 2005-09-02 09:36:06 UTC
can you attach a screenshot, please?
Comment 2 Klaus Singvogel 2005-09-02 10:00:32 UTC
Created attachment 48574 [details]
screenshot of yast2
Comment 3 Klaus Singvogel 2005-09-02 10:01:30 UTC
I marked the problematic Umlaut in red. 
Comment 4 Michal Zugec 2005-09-02 11:28:31 UTC
it seems translation string was in some 8-bit encoding and its trying to  show
it as unicode
Comment 5 Kerry OConnor 2005-09-02 13:51:09 UTC
Created attachment 48600 [details]
fixed cups_de

fixed corruptions in /usr/share/locale/de/cups_de
Comment 6 Kerry OConnor 2005-09-02 13:56:22 UTC
Hi Karl, the only place I could find this was in /usr/share/locale/de/cups_de
which is not part of our file set. It looks like it may be generated
automatically but we can't find the strings in our resources. However, we fixed
the corruptions in the file and I've attached it above if this is of use to you.
Comment 7 Karl Eichwalder 2005-09-02 14:07:58 UTC
Thanks for the report and fix!
Comment 8 Johannes Meixner 2005-09-02 14:29:10 UTC
This bug is not for me.
But I don't know whom to assign it.
/usr/share/locale/de/cups_de belongs to the package cups-client
but is it really a CUPS bug?
Karl, do you know more about what is going on here?
Comment 9 Johannes Meixner 2005-09-02 14:31:11 UTC
Strange.
I definitely set "ke@suse.de" as info provider
but somehow it was set to Klaus...
Comment 10 Karl Eichwalder 2005-09-02 14:39:10 UTC
The system default encoding is UTF-8.  It might help to make use of UTF-8 for
/usr/share/locale/de/cups_de . 
Comment 11 Klaus Singvogel 2005-09-02 16:29:49 UTC
Fine that our system default encoding is UTF-8, cups default encoding is not UTF-8. :-) 
 
/usr/share/locale/de/cups_de needs to be kept as is, otherwise the webinterface and other 
things will break IMHO. 
 
cups is able to detect which encoding the user has, converts to the appropriate encoding, 
and then responds with the correct charset. 
  
Nevertheless, if it really is latin-1 encoding, then I'm asking myself, why my snapshot is 
displaying broken two-byte characters for every digraph and not one-byte characters? 
Therefore I doubt that this encoding problem is generate by the latin-9 encoding cups. 
Sorry guys, but I strongly think, its the fault of YaST. Assigning back to ke@suse.de  
Comment 12 Karl Eichwalder 2005-09-04 08:10:16 UTC
aj please to clarify what is the default encoding on SUSE Linux.
Comment 13 Andreas Jaeger 2005-09-04 09:05:06 UTC
Default encoding is UTF-8.

If that causes a problem with cups, we need to convert the file somehow for
YaST display.

Klaus, please work with the YaST team on this.
Comment 14 Klaus Singvogel 2005-09-05 09:25:41 UTC
ke: please tell me, at which point of the YaST code you were reading the CUPS   
internal locale settings:   
- which functions do you use for that?  
- how can internal data of CUPS accessed by an external program, like YaST?  
  
Additional question: why is this the only translated text in YaST, whereas  
YaST is using English texts for configuration everywhere else?  
You might notice that the screenshot shows "Media Type", which is not 
translated to "Medium". But the later is also present in the cups_de 
translation. This is correct behavior. But why does YaST use some other locale 
data and not none? Very confusing. 
   
Another question: how does it happen, that a 8bit digraph (in latin9) is   
displayed as a two-byte digraph in YaST?  
Comment 15 Karl Eichwalder 2005-09-05 10:01:35 UTC
I'm not a yast hacker.
Comment 16 Michael Gross 2005-09-05 10:06:09 UTC
I assigned this bug to mzugec@suse.de
Comment 17 Johannes Meixner 2005-09-05 10:42:13 UTC
According to what I found out, it seems YaST tries to recode what it
got from CUPS to UTF8 in src/modules/Printerdb.ycp: getPpdFileOptions
but I don't understand the special handling of "PageSize" and "Custom"
in this code.

To test it, you must use a PPD file with a "CustomPageSize" option, e.g.:
/usr/share/cups/model/Epson/Stylus_C64-gimp-print.ppd.gz
Comment 18 Michal Zugec 2005-09-09 12:29:36 UTC
this translation comes from cups package
Comment 19 Klaus Singvogel 2005-09-09 13:15:47 UTC
Michal: You are the maintainer of the appropriate YaST module. Why don't you just answer  
the open questions regarding YaST, so we can work on it? Instead you deliver NO answer  
and especially no content, but reassign the bug to me. Thats not helpful. Please do. 
Comment 20 Michal Zugec 2005-09-09 16:03:06 UTC
The problem is that /usr/share/locale/de_DE/cups_de_DE provided by cups-client
is encoded in ISO-8859-15 instead of UTF-8
When I convert it by iconv it works fine!
I will inform to Ines Pozzo on Monday (for RC2)
Comment 21 Michal Zugec 2005-09-12 12:53:07 UTC
fixed