Changeset 1791

Show
Ignore:
Timestamp:
10/08/04 22:19:18 (20 years ago)
Author:
jalet
Message:

Added ugly workaround for strange locale problem

Location:
pykota/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1790 r1791  
    2222PyKota NEWS : 
    2323 
     24    - 1.20alpha23 : 
     25     
     26        - Add workaround for locale problem. 
     27         
    2428    - 1.20alpha22 : 
    2529     
  • pykota/trunk/pykota/storage.py

    r1790 r1791  
    2222# 
    2323# $Log$ 
     24# Revision 1.64  2004/10/08 20:19:18  jalet 
     25# Added ugly workaround for strange locale problem 
     26# 
    2427# Revision 1.63  2004/10/07 21:14:28  jalet 
    2528# Hopefully final fix for data encoding to and from the database 
     
    694697                return unicode(text, "UTF-8").encode(self.tool.getCharset())  
    695698            except UnicodeError :     
    696                 pass 
     699                try : 
     700                    # Incorrect locale settings ? 
     701                    return unicode(text, "UTF-8").encode("ISO-8859-15")  
     702                except UnicodeError :     
     703                    pass 
    697704        return text 
    698705         
     
    703710                return unicode(text, self.tool.getCharset()).encode("UTF-8")  
    704711            except UnicodeError :     
    705                 pass 
     712                try : 
     713                    # Incorrect locale settings ? 
     714                    return unicode(text, "ISO-8859-15").encode("UTF-8")  
     715                except UnicodeError :     
     716                    pass 
    706717        return text 
    707718         
  • pykota/trunk/pykota/version.py

    r1788 r1791  
    2222# 
    2323 
    24 __version__ = "1.20alpha22_unofficial" 
     24__version__ = "1.20alpha23_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng."""