Debian Bug report logs - #341661
libncursesw5: wins_nwstr() fails to correctly identify cyrillic characters as wide

version graph

Package: libncursesw5; Maintainer for libncursesw5 is Craig Small <>; Source for libncursesw5 is src:ncurses.

Reported by: "Dmitry Baryshkov" <>

Date: Fri, 2 Dec 2005 01:48:02 UTC

Severity: normal

Tags: patch

Found in version libncursesw5/5.5-1

Fixed in version ncurses/5.5-2

Done: Daniel Jacobowitz <>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox

Report forwarded to, Daniel Jacobowitz <>:
Bug#341661; Package libncursesw5. Full text and rfc822 format available.

Acknowledgement sent to "Dmitry Baryshkov" <>:
New Bug report received and forwarded. Copy sent to Daniel Jacobowitz <>. Full text and rfc822 format available.

Message #5 received at (full text, mbox):

From: "Dmitry Baryshkov" <>
To: Debian Bug Tracking System <>
Subject: libncursesw5: wins_nwstr() fails to correctly identify cyrillic characters as wide
Date: Fri, 02 Dec 2005 04:42:49 +0300
[Message part 1 (text/plain, inline)]
Package: libncursesw5
Version: 5.5-1
Severity: normal
Tags: patch

The wins_nwstr() logic of inserting characters fails on the cyrillic
charcters, because they aren't 'wide' (wcwidth(char) == 1), but they
aren't ASCII chars, so _nc_insert_ch() function (called from the
wins_nwstr() in case of non-'wide' char) fails to put the correct
character in the window.

The bug was discovered by Ivan Loh (loh at 1917 dot com) by trying to
use aspell with russian texts.

Attached patch fixes the problem.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)

Versions of packages libncursesw5 depends on:
ii  libc6                         2.3.5-8    GNU C Library: Shared libraries an

Versions of packages libncursesw5 recommends:
ii  libgpmg1                      1.19.6-21  General Purpose Mouse - shared lib

-- no debconf information
[ncurses.diff (text/plain, attachment)]

Reply sent to Daniel Jacobowitz <>:
You have taken responsibility. Full text and rfc822 format available.

Notification sent to "Dmitry Baryshkov" <>:
Bug acknowledged by developer. Full text and rfc822 format available.

Message #10 received at (full text, mbox):

From: Daniel Jacobowitz <>
Subject: Bug#341661: fixed in ncurses 5.5-2
Date: Tue, 02 May 2006 10:15:05 -0700
Source: ncurses
Source-Version: 5.5-2

We believe that the bug you reported is fixed in the latest version of
ncurses, which is due to be installed in the Debian FTP archive:

  to pool/main/n/ncurses/lib32ncurses5-dev_5.5-2_amd64.deb
  to pool/main/n/ncurses/lib32ncurses5_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncurses5-dbg_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncurses5-dev_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncurses5_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncursesw5-dbg_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncursesw5-dev_5.5-2_amd64.deb
  to pool/main/n/ncurses/libncursesw5_5.5-2_amd64.deb
  to pool/main/n/ncurses/ncurses-base_5.5-2_all.deb
  to pool/main/n/ncurses/ncurses-bin_5.5-2_amd64.deb
  to pool/main/n/ncurses/ncurses-term_5.5-2_all.deb
  to pool/main/n/ncurses/ncurses_5.5-2.diff.gz
  to pool/main/n/ncurses/ncurses_5.5-2.dsc

A summary of the changes between this version and the previous one is

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
Daniel Jacobowitz <> (supplier of updated ncurses package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing

Hash: SHA1

Format: 1.7
Date: Sun, 30 Apr 2006 16:35:05 -0400
Source: ncurses
Binary: ncurses-base lib64ncurses5 libncursesw5-dev libncursesw5-dbg ncurses-bin libncurses5 libncursesw5 libncurses5-dev ncurses-term lib32ncurses5-dev lib32ncurses5 libncurses5-dbg lib64ncurses5-dev
Architecture: source amd64 all
Version: 5.5-2
Distribution: unstable
Urgency: low
Maintainer: Daniel Jacobowitz <>
Changed-By: Daniel Jacobowitz <>
 lib32ncurses5 - Shared libraries for terminal handling (32-bit)
 lib32ncurses5-dev - Developer's libraries for ncurses (32-bit)
 libncurses5 - Shared libraries for terminal handling
 libncurses5-dbg - Debugging/profiling libraries for ncurses
 libncurses5-dev - Developer's libraries and docs for ncurses
 libncursesw5 - Shared libraries for terminal handling (wide character support)
 libncursesw5-dbg - Debugging/profiling libraries for ncurses
 libncursesw5-dev - Developer's libraries for ncursesw
 ncurses-base - Descriptions of common terminal types
 ncurses-bin - Terminal-related programs and man pages
 ncurses-term - Additional terminal type definitions
Closes: 316663 334099 335655 338234 339518 341661 344022 344442 354281 355129 364339
 ncurses (5.5-2) unstable; urgency=low
   * Update to upstream patch level 20060422.
     - Correct missing and bogus copyright notices (Closes: #364339).
     - Correct a typo in the infocmp(1) man page (Closes: 354281).
     - Correct wins_nwstr for single-column non-8bit codes (Closes: #341661).
     - Remove a redundant test in lib_color.c (Closes: #335655).
     - Ignore EINTR in tcgetattr/tcsetattr calls (Closes: #339518).
     - Correct smacs in cygwin terminfo (Closes: #338234).
     - Two additional fixes for wide character display (Closes: #316663)
   * Acknowledge NMU (Closes: #355129).
   * Update control file for the removal of Section: base.
   * Use DEB_HOST_ARCH to determine whether to build biarch packages,
     based on patch from Aurelien Jarno (Closes: #334099).
   * Make lib64ncurses5-dev depend on lib64c-dev (Closes: #344022).
   * Add 32-bit library support on amd64, based loosely on Ubuntu
     patch (Closes: #344442).
   * Package debugging versions of libncurses++.a.
   * Update to debhelper compatibility level 5.
   * Update policy version to
   * Use shorter symlinks within terminfo directories when possible
     (e.g. xx -> xy instead of xx -> ../x/xy).
 67d1c3aeade59080eef852163369aad1 1016 libs standard ncurses_5.5-2.dsc
 e364f6c9b4069858811380d9413aa4c1 267511 libs standard ncurses_5.5-2.diff.gz
 5f8ac6f2c5152312ecb99d16b2b2694f 326914 libs required libncurses5_5.5-2_amd64.deb
 44f7971b876d8cc3bd938d30ef4086e1 1397902 libdevel optional libncurses5-dev_5.5-2_amd64.deb
 fa793b111679e39e6aac5652d0a7b58a 1625338 libdevel extra libncurses5-dbg_5.5-2_amd64.deb
 013032d9e1a01eadaf3e4154c05fc959 346736 libs important libncursesw5_5.5-2_amd64.deb
 ff2c0635f32d9a6d8f87c6e312a839eb 468774 libdevel optional libncursesw5-dev_5.5-2_amd64.deb
 bbd416d325ec51d229c18597bdb84401 1820344 libdevel extra libncursesw5-dbg_5.5-2_amd64.deb
 04636992af89ec30cd06ac18dada041f 299652 libs optional lib32ncurses5_5.5-2_amd64.deb
 8b8ca4b089a10bd5407625b94bc6e2e0 357666 libdevel optional lib32ncurses5-dev_5.5-2_amd64.deb
 7697188007849a705bc1efca8af7de32 230776 utils required ncurses-bin_5.5-2_amd64.deb
 fe09b1b13bb5a5e0e914e3a6490c31cd 12848 utils required ncurses-base_5.5-2_all.deb
 db626d5770c5b02d1558ee43a34759d7 277468 admin standard ncurses-term_5.5-2_all.deb

Version: GnuPG v1.4.3 (GNU/Linux)


Bug archived. Request was from Debbugs Internal Request <> to (Tue, 26 Jun 2007 03:33:21 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.

Debian bug tracking system administrator <>. Last modified: Thu Apr 17 19:03:29 2014; Machine Name:

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.