<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>210329</bug_id>
          
          <creation_ts>2009-10-12 16:34:37 +0000</creation_ts>
          <short_desc>some unicode characters are displayed as whitespace</short_desc>
          <delta_ts>2011-10-17 16:20:31 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>konsole</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Joke de Buhr">joke.de.buhr</reporter>
          <assigned_to name="Konsole Bugs">konsole-bugs-null</assigned_to>
          <cc>adaptee</cc>
    
    <cc>alberthilbert</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin>4.8</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>844020</commentid>
    <comment_count>0</comment_count>
    <who name="Joke de Buhr">joke.de.buhr</who>
    <bug_when>2009-10-12 16:34:37 +0000</bug_when>
    <thetext>Version:            (using KDE 4.3.2)
OS:                Linux
Installed from:    Ubuntu Packages

My z-shell themes uses some unicode characters as prompt borders. Konsole doesn&apos;t show some corner characters of these character bounding boxes. It just displays them as whitespaces.

these characters are displayed:
    &apos;─&apos; U+2500, &apos;├&apos; U+251C
these and other arc characters are displayed as whitespace:
    &apos;╭&apos; U+256D, &apos;╰&apos; U+2570

Konsole uses UTF-8 encoding and locales are set to en_US.UTF-8 and are installed. DejaVu Sans Mono is used as Font. The shell file is encoded correctly.

Other KDE applications like Kate with DejaVu font can display all characters without problem. Cut&amp;Paste from Kate to openoffice works fine but not paste to Konsole commandline. Cut&amp;Paste the whitespace back to Kate displays all characters.

It&apos;s not a z-shell problem. Xterm can display these characters with zsh and Konsole running bash catting the file produces spaces.

Konsole versions of KDE3 didn&apos;t have this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>879946</commentid>
    <comment_count>1</comment_count>
    <who name="Joke de Buhr">joke.de.buhr</who>
    <bug_when>2009-12-14 22:52:40 +0000</bug_when>
    <thetext>The bugs affects 4.3.3 and 4.3.4 as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143399</commentid>
    <comment_count>2</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-07-19 07:44:53 +0000</bug_when>
    <thetext>possibly related with #230192</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143473</commentid>
    <comment_count>3</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2011-07-19 10:55:47 +0000</bug_when>
    <thetext>*** Bug 230192 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1143664</commentid>
    <comment_count>4</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-07-19 19:46:58 +0000</bug_when>
    <thetext>hI think I have figured out why they are not displayed correctly.

A small subset (U+2500 ~ U+257F) of unicode characters , referred as linechars
in the code, are drawn in a special way. They are drawn according their
corresponding value in LineChars[] array in LineFont.h, which is automatically
generated from LineFont.src in the building process. However, some characters
lack definitions in LineFont.src, so they will be drawn as whitespace(?),
instead of the expected glyph.

The code flow for drawing these characters is: TerminalDisplay::drawCharacters()
--&gt; TerminalDisplay::drawLineCharString() --&gt; drawLineChar()

Why they are drawn in this special way and how to fix the missing definitions
are definitely beyond my knowledge. And the last change on LineFont.src is 4
years ago.

The influenced characters are listed below.

┄ 	U+2504
┅ 	U+2505
┆ 	U+2506
┇       U+2507
┈ 	U+2508
┉ 	U+2509
┊ 	U+250A
┋       U+250B

╌ 	U+254C
╍ 	U+254D
╎ 	U+254E
╏       U+254F

╭ 	U+256D
╮ 	U+256E
╯       U+256F
╰ 	U+2570
╱ 	U+2571
╲ 	U+2572
╳       U+2573</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144440</commentid>
    <comment_count>5</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-07-22 13:22:34 +0000</bug_when>
    <thetext>Ping?  

I tested my comment #4 in xterm, rxvt-uniocde, xfce4-terminal and gnome-terminal, and they all showed those influenced characters correctly. It&apos; only konsole that can&apos;t show them.

Please confirm this bug as &apos;New&apos;, seriously.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1144444</commentid>
    <comment_count>6</comment_count>
    <who name="Kurt Hindenburg">khindenburg</who>
    <bug_when>2011-07-22 13:36:11 +0000</bug_when>
    <thetext>Whether a bug is NEW or UNCONFIRMED doesn&apos;t make a lot of difference.  As you&apos;ve noticed there are a ton of bugs and I&apos;ve never been able to keep up doing this alone.

Thanks for your help recently.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1174337</commentid>
    <comment_count>7</comment_count>
    <who name="Jekyll Wu">adaptee</who>
    <bug_when>2011-10-17 16:20:31 +0000</bug_when>
    <thetext>Git commit c53d790f31d7a23e59b37b44c4529ae8229e8204 by Jekyll Wu.
Committed on 12/10/2011 at 14:50.
Pushed by jekyllwu into branch &apos;master&apos;.

Draw some fail-to-simulate box-drawing characters in the normal way.

BUG:210329
FIXED-IN:4.8
REVIEW:102836

M  +28   -1    src/Character.h
M  +4    -1    src/TerminalDisplay.cpp

http://commits.kde.org/konsole/c53d790f31d7a23e59b37b44c4529ae8229e8204</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>