Bug 69957 - Konsole can't show the Euro symbol (again!)
Summary: Konsole can't show the Euro symbol (again!)
Status: RESOLVED NOT A BUG
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-09 21:16 UTC by Unai Garro
Modified: 2003-12-10 15:27 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Unai Garro 2003-12-09 21:16:23 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources
Compiler:          gcc 3.3.1 
OS:          Linux

It seems that konsole is the only app right now in CVS unable to display the euro symbol. And shows a "?" sign instead. 

I tried several fonts that actually include it like the Bitstream fonts but I couldn't manage to make it show it. Other unicode symbols seem to be shown fine (á,ñ,æ,...), and all other apps using the fonts seem to show the symbol too.

And given xev, the symbol is being transmitted well too.


KeyRelease event, serial 28, synthetic NO, window 0x4000001,
    root 0x40, subw 0x0, time 700860, (241,-162), root:(244,279),
    state 0x2000, keycode 26 (keysym 0x20ac, EuroSign), same_screen YES,
    XLookupString gives 0 bytes:  ""

It sounds a locale problem, but it's strange given that every other app seem to show it right.
Comment 1 Thiago Macieira 2003-12-10 00:28:45 UTC
It is a locale problem. Konsole can't display the euro symbol if your terminal encoding (which is selected by your $LANG) doesn't have the euro glyph.

Use a locale which contains the euro symbol, like a UTF-8 or ISO-8859-15 based locale.
Comment 2 Stephan Kulow 2003-12-10 10:58:28 UTC
Subject: Re:  New: Konsole can't show the Euro symbol (again!)

On Tuesday 09 December 2003 21:16, Unai Garro wrote:
>  XLookupString gives 0 bytes: 
Comment 3 Thiago Macieira 2003-12-10 15:27:08 UTC
Sorry, xev is no comparison here. Yes, it shows that it can't find the right symbol in the locale, but that is not the point here.

Thanks to some Qt hacks inside X (I think), KDE applications can see the full range of Unicode characters, even when libX11 doesn't give us the 8-bit representation. What matters is the Unicode keysym above, which correctly points to the Euro symbol (U+20AC).

However, as I explained to uga on IRC, Konsole is special because its screen buffer is created for 8-bit applications. Therefore, symbols that can't be represented by the locale get replaced with a ?.