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 eryksun
Recipients aseques, eryksun
Date 2019-09-19.05:27:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568870859.36.0.0232619444274.issue38220@roundup.psfhosted.org>
In-reply-to
Content
The result from strftime is platform dependent. In Windows, the result has a trailing "." for the abbreviated names that are less than four characters, but no "de" in either form:

    >>> months = [(2019, m) + (0,)*7 for m in range(1,13)]
    >>> locale.setlocale(locale.LC_ALL, 'ca_ES.utf8')
    'ca_ES.utf8'
    >>> print(*(time.strftime('%b|%B', m) for m in months), sep='\n')
    gen.|gener
    febr.|febrer
    març|març
    abr.|abril
    maig|maig
    juny|juny
    jul.|juliol
    ag.|agost
    set.|setembre
    oct.|octubre
    nov.|novembre
    des.|desembre

In Linux, the result uses the same base abbreviations as in Windows, including the trailing ".", but it also includes "de" or "d'" in both forms:

    >>> months = [(2019, m) + (0,)*7 for m in range(1,13)]
    >>> locale.setlocale(locale.LC_ALL, 'ca_ES.utf8')
    'ca_ES.utf8'
    >>> print(*(time.strftime('%b|%B', m) for m in months), sep='\n')
    de gen.|de gener
    de febr.|de febrer
    de març|de març
    d’abr.|d’abril
    de maig|de maig
    de juny|de juny
    de jul.|de juliol
    d’ag.|d’agost
    de set.|de setembre
    d’oct.|d’octubre
    de nov.|de novembre
    de des.|de desembre
History
Date User Action Args
2019-09-19 05:27:39eryksunsetrecipients: + eryksun, aseques
2019-09-19 05:27:39eryksunsetmessageid: <1568870859.36.0.0232619444274.issue38220@roundup.psfhosted.org>
2019-09-19 05:27:39eryksunlinkissue38220 messages
2019-09-19 05:27:39eryksuncreate