https://bugzilla.wikimedia.org/show_bug.cgi?id=54726
Web browser: --- Bug ID: 54726 Summary: Support for unicode text input in cmd on windows Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: Siddhartha.Ghai@gmail.com Classification: Unclassified Mobile Platform: ---
System Environment: Windows 7 X64 SP1 CLI: cmd.exe
As of now, the Core branch of the framework doesn't seem to support direct unicode input in the CLI.
The command:
python pwb.py C:/Users/username/core/scripts/add_text.py -page:%E0%A4%B8%E0%A4%A6%E0%A4%B8%E0%A5%8D%E0%A4%AF:Siddhartha_Ghai/sandbox17 -text:"जाँच" -summary:"जाँच"
gave this diff: https://hi.wikipedia.org/w/index.php?title=%E0%A4%B8%E0%A4%A6%E0%A4%B8%E0%A5...
The devanagari input text and the editsummary both are lost as question marks.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54726
Siddhartha Ghai Siddhartha.Ghai@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |Siddhartha.Ghai@gmail.com
--- Comment #1 from Siddhartha Ghai Siddhartha.Ghai@gmail.com --- Note: The add_text.py file used was downloaded from https://git.wikimedia.org/raw/pywikibot%2Fcompat.git/929557870a21e945ef7e8f8... and then the import statements were modified.
https://bugzilla.wikimedia.org/show_bug.cgi?id=54726
--- Comment #2 from Merlijn van Deen valhallasw@arctus.nl --- Note to myself: support is there, but it's not implemented into handleArgs (and pwb.py might also need some adaptation)
null.py is an empty file...
...n\pwb>python -i pwb.py null.py के अवतरणों में अंतर
import pywikibot pywikibot.handleArgs()
[u'null.py', u'??', u'???????', u'???', u'????']
from pywikibot.userinterfaces.win32_unicode import argv argv
['pwb.py', 'null.py', '\xe0\xa4\x95\xe0\xa5\x87', '\xe0\xa4\x85\xe0\xa4\xb5\xe0\xa4\xa4\xe0\xa4\xb0\xe0\xa4\xa3\xe0\xa5\x8b\xe0\xa4\x82', '\xe0\xa4\xae\xe0\xa5\x87\xe0\xa4\x82', '\xe0\xa4\x85\xe0\xa4\x82\xe0\xa4\xa4\xe0\xa4\xb0']
[x.decode('utf-8') for x in argv]
[u'pwb.py', u'null.py', u'\u0915\u0947', u'\u0905\u0935\u0924\u0930\u0923\u094b\u0902', u'\u092e\u0947\u0902', u'\u0905\u0902\u0924\u0930']
pywikibot.output(u' '.join(x.decode('utf-8') for x in argv))
pwb.py null.py के अवतरणों में अंतर
https://bugzilla.wikimedia.org/show_bug.cgi?id=54726
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |valhallasw@arctus.nl Hardware|All |PC Assignee|Pywikipedia-bugs@lists.wiki |valhallasw@arctus.nl |media.org |
pywikipedia-bugs@lists.wikimedia.org