This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author terry.reedy
Recipients nneonneo, rhettinger, terry.reedy
Date 2013-02-02.09:41:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1359798096.85.0.928898403793.issue17048@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-02-02 09:41:36terry.reedysetrecipients: + terry.reedy, rhettinger, nneonneo
2013-02-02 09:41:36terry.reedysetmessageid: <1359798096.85.0.928898403793.issue17048@psf.upfronthosting.co.za>
2013-02-02 09:41:36terry.reedylinkissue17048 messages
2013-02-02 09:41:36terry.reedycreate