Terry J. Reedy added the comment:

For this particular East Asian local, the problem is the double spacing between 
the double-width characters (the Chinese numbers 1 to 7). This is potentially 
easily fixed for this locale. But do all locales have abbreviated weekday names 
that fit in 2 columns?

In looking at whether this issue should be classified as a bug or feature 
issue, I only found this:
'''
 class calendar.LocaleTextCalendar(firstweekday=0, locale=None)

    This subclass of TextCalendar can be passed a locale name in the 
constructor and will return month and weekday names in the specified locale.'''

The current code does this, though not gracefully. I suspect that adding "-t 
html" to the command line, to use class calendar.LocaleHTMLCalendar, would work 
better.

[Doc note 1: I suspect the next sentence "If this locale includes an encoding 
all strings containing month and weekday names will be returned as unicode.", 
which is unchanged from 2.x, is obsolete and perhaps should just be removed.

Doc note 2: I could not find any doc for the command line interface in 
8.2. calendar — General calendar-related functions. Unless I am missing 
something, a new section should be added.]

#12568 will add a new feature that will only go in the 'next' release. So if 
this issue depends on that issue, it is effectively a new feature also.

----------
nosy: +rhettinger, terry.reedy
stage:  -> needs patch
type:  -> enhancement
versions: +Python 3.4 -Python 2.7, Python 3.2

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue17048>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to