[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2009-09-30 Thread fugounashi

Changes by fugounashi :


--
components: +Library (Lib)

___
Python tracker 
<http://bugs.python.org/issue6733>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2009-08-27 Thread fugounashi

fugounashi  added the comment:

thanks for looking into it

this should do it:

#! /usr/bin/python
import locale
locale.setlocale(locale.LC_ALL, '')
code = locale.getpreferredencoding()
import curses
def main(stdscr):
stdscr.erase()
stdscr.move(0, 0)
for i in range(0,stdscr.getmaxyx()[1] - 1):
stdscr.addstr(".");
stdscr.addstr(u"\u3007\u3007".encode(code));
stdscr.refresh()
curses.wrapper(main)

--

___
Python tracker 
<http://bugs.python.org/issue6733>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue6733] curses line wrap broken when mixing full- and half-width unicode characters

2009-08-18 Thread fugounashi

New submission from fugounashi :

when printing a full width unicode character near the end of a line when
only a single (half-width) space remains, the character is printed at
the start of the current line rather than the start of the next line. 
the following character is printed in the following space on the next
line as it should be.  same behaviour in both mlterm and xterm

thanks!

python deb 2.5.2-3

--
messages: 91721
nosy: fugounashi
severity: normal
status: open
title: curses line wrap broken when mixing full- and half-width unicode 
characters
type: behavior
versions: Python 2.5

___
Python tracker 
<http://bugs.python.org/issue6733>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com