Zine

open source content publishing system


Changeset 1351:b7af87777804


Ignore:
Timestamp:
05/15/10 02:37:49 (2 years ago)
Author:
Mike Crute <mcrute@…>
Branch:
default
Message:

Ticket 251: Switching language on Windows generates struct.unpack error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • zine/i18n/__init__.py

    r1279 r1351  
    144144        catalog = find_catalog(path, domain, locale, gettext_lookup) 
    145145        if catalog: 
    146             return ZineTranslations(fileobj=open(catalog), locale=locale) 
     146            return ZineTranslations(fileobj=open(catalog, 'rb'), locale=locale) 
    147147        return ZineNullTranslations(locale=locale) 
    148148 
Note: See TracChangeset for help on using the changeset viewer.