[Patches] [ python-Patches-423221 ] Add a few Windows encoding aliases

noreply@sourceforge.net noreply@sourceforge.net
Tue, 29 May 2001 23:23:50 -0700


Patches item #423221, was updated on 2001-05-10 21:14
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=423221&group_id=5470

Category: library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Brian Quinlan (bquinlan)
Assigned to: Mark Hammond (mhammond)
Summary: Add a few Windows encoding aliases

Initial Comment:
This patch adds aliases for some of the common Windows 
encodings. Windows-1252 is particularly useful because 
it is the default encoding used by Visual Studio .NET 
projects. 

Microsoft's complete encoding list can be found at:
http://msdn.microsoft.com/workshop/author/dhtml/referen
ce/charsets/charset4.asp


----------------------------------------------------------------------

>Comment By: Brian Quinlan (bquinlan)
Date: 2001-05-29 23:23

Message:
Logged In: YES 
user_id=108973

The first patch (alias.patch) is incorrect and I'm not sure 
it the replacement (aliases.patch) is visible to anyone but 
me, so here is aliases.patch inline:

*** d:\Dev\python\dist\src\Lib\encodings\aliases.py	Wed 
Jun  7 02:12:30 2000
--- d:\Dev\python-dev\dist\src\Lib\encodings\aliases.py	Tue 
May 29 19:16:58 2001
***************
*** 59,64 ****
--- 59,69 ----
      'macroman': 'mac_roman',
      'macturkish': 'mac_turkish',
  
+     # Windows
+     'windows_1252': 'cp1252',
+     'windows_1254': 'cp1254',
+     'windows_1255': 'cp1255',
+     
      # MBCS
      'dbcs': 'mbcs',

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=423221&group_id=5470