difference in russian language pack between OSX and Ubuntu, how to get the same output for strftime?
Question: I am running into an issue with the use of Russian dates in python.

When I run the following on a local OSX virtualenv with python 2.7.9:

    
    
    import locale
    import datetime
    
    locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
    temp = datetime.date(2015, 8, 11)
    print temp.strftime("%d %B %Y")
    

The output is:

    
    
    11 августа 2015
    

When I run almost the same code on an Ubuntu server in a virtualenv with
python 2.7.9:

    
    
    import locale
    import datetime
    
    locale.setlocale(locale.LC_ALL, 'ru_RU.UTF-8')
    temp = datetime.date(2015, 8, 11)
    print temp.strftime("%d %B %Y")
    

The output is different

    
    
    11 Август 2015
    

Where does this difference come from and is there a way to force one
implementation over the other?

When using strptime this difference is causing errors when the wrong
implementation is used since the formats do not match.


Answer: I have the same case with `strftime` on OSx and Ubuntu. I solve it with
`django.utils.formats`:

    
    
    import datetime
    from django.utils import formats
    temp = datetime.date(2015, 8, 11)
    print formats.date_format(temp, 'DATE_FORMAT')
    

There are some default date formats like 'DATE_FORMAT',
'SHORT_DATETIME_FORMAT', but you also can define your own format in Settings.

