[prev in list] [next in list] [prev in thread] [next in thread]
List: python-patches
Subject: [Patches] [ python-Patches-423221 ] Add a few Windows encoding aliases
From: noreply () sourceforge ! net (noreply () sourceforge ! net)
Date: 2001-05-30 21:04:08
Message-ID: E155D8S-0001tY-00 () usw-sf-web2 ! sourceforge ! net
[Download RAW message or body]
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: M.-A. Lemburg (lemburg)
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-30 14:04
Message:
Logged In: YES
user_id=108973
Yeah, there are tonnes. But after my initial mistake, I
don't want to add any without carefully checking that the
encodings that I am aliasing are exactly identical.
I'll probably add some more later but Windows-1252 is
probably the most immediately useful.
----------------------------------------------------------------------
Comment By: M.-A. Lemburg (lemburg)
Date: 2001-05-30 12:59
Message:
Logged In: YES
user_id=38388
The link you gave doesn't work for me, but the aliases look
reasonable... aren't there more (Windows does have far more
code pages than the few you added) ?
In any case, go ahead and check them in :-)
----------------------------------------------------------------------
Comment By: Mark Hammond (mhammond)
Date: 2001-05-29 23:30
Message:
Logged In: YES
user_id=14198
This looks good to me! Assiging to MAL simply for
comment. Marc - if you have no objections and this sounds
reasonable, assign back to me and I will check it in.
----------------------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic