Package: dialog
Version: 1.1-20100119-1
Severity: normal

When Thai text is wrapped at the character with a following combining
character, the combining character gets wrapped instead of staying with the
base character at line end.

Test case:

LANG=en_US.UTF-8 dialog --title "ทดสอบวรรณยุกต์" \
 --msgbox "วรรณยุกต์อยู่ท้ายบรรทัดได้หรือไม่" 8 23

Expected result: a dialog like this:

  ┌───ทดสอบวรรณยุกต์──────┐
  │ วรรณยุกต์อยู่ท้ายบรรทัดได้ │  
  │ หรือไม่               │  
  │                     │  
  │                     │  
  ├─────────────────────┤  
  │     <  OK  >        │  
  └─────────────────────┘  

What actually happens:

  ┌───ทดสอบวรรณยุกต์──────┐
  │ วรรณยุกต์อยู่ท้ายบรรทัดได │  
  │ ้หรือไม               │  
  │                     │  
  │                     │  
  ├─────────────────────┤  
  │     <  OK  >        │  
  └─────────────────────┘  

Notice the missing combining character at the end of the first line, which
gets incorrectly wrapped to the second line.

Also notice the missing combining character at the end of the second line.
This always happens regardless of how the text is wrapped. The last combining
character of the line is always lost.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=th_TH.UTF-8, LC_CTYPE=th_TH.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages dialog depends on:
ii  debianutils               3.2.2          Miscellaneous utilities specific t
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib
ii  libncursesw5              5.7+20090803-2 shared libraries for terminal hand

dialog recommends no packages.

dialog suggests no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to