Revision: 4370
Author: huji
Date: 2007-09-27 11:55:26 +0000 (Thu, 27 Sep 2007)
Log Message:
-----------
Recreating "messages" branch. To be used for the purpose of separating edit summaries from the code, into a separate Messages.py file
Added Paths:
-----------
branches/pywikipedia/messages/
Copied: branches/pywikipedia/messages (from rev 4369, trunk/pywikipedia)
Feature Requests item #1803422, was opened at 2007-09-27 13:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1803422&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Multichill (multichill)
Assigned to: Nobody/Anonymous (nobody)
Summary: template.py -remove end of line
Initial Comment:
When running template.py -remove <template> i noticed that the template is removed but not the end of line leaving some extra unneeded whitespace. For example:
http://nl.wikipedia.org/w/index.php?title=Aleksandr_Chalifman&diff=prev&old…http://nl.wikipedia.org/w/index.php?title=Bent_Larsen&diff=prev&oldid=95283…
It would be nice if the only thing on a a line is
{{<template>}}
and the template is removed that also the end of line is removed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=1803422&group_…
Bugs item #1803037, was opened at 2007-09-26 13:22
Message generated for change (Comment added) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: windows console encoding problem
Initial Comment:
there is a code in wikipedia.py:
if sys.platform=='win32':
# Windows gives parameters encoded as windows-1252,
# regardless of console encoding
arg = unicode(arg, 'windows-1252')
It seems to fix console bug.
but unfortunately, for example if you use cp949 as console encoding, then you will get all non-ascii text cracked. it is because Windows gives gives parameters encoded as cp949, not cp1252.
so I've used a workaround patch from
if sys.platform=='win32':
to
if sys.platform=='win32' and config.console_encoding != 'cp949':
to prevent encoding error. I guess some of other non-latin codepages have same trouble but I'm not sure.
-- [[:ko:User:Klutzy]]
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2007-09-26 14:07
Message:
Logged In: NO
By cracked, User:Klutzy means garbled.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037&group_…
Bugs item #1803037, was opened at 2007-09-26 13:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: windows console encoding problem
Initial Comment:
there is a code in wikipedia.py:
if sys.platform=='win32':
# Windows gives parameters encoded as windows-1252,
# regardless of console encoding
arg = unicode(arg, 'windows-1252')
It seems to fix console bug.
but unfortunately, for example if you use cp949 as console encoding, then you will get all non-ascii text cracked. it is because Windows gives gives parameters encoded as cp949, not cp1252.
so I've used a workaround patch from
if sys.platform=='win32':
to
if sys.platform=='win32' and config.console_encoding != 'cp949':
to prevent encoding error. I guess some of other non-latin codepages have same trouble but I'm not sure.
-- [[:ko:User:Klutzy]]
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1803037&group_…