[pywin32-bugs] [ pywin32-Bugs-2033080 ] Errors when setting source file encoding with scripting hos
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: SourceForge.net <no...@so...> - 2008-07-30 20:16:46
|
Bugs item #2033080, was opened at 2008-07-30 21:37 Message generated for change (Comment added) made by ramong You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2033080&group_id=78018 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: Closed Resolution: None Priority: 5 Private: No Submitted By: Ramon Garcia (ramong) Assigned to: Nobody/Anonymous (nobody) Summary: Errors when setting source file encoding with scripting host Initial Comment: When setting source file encoding (see pep 263), running a script with cscript produces strange errors. A trivial script like # This Python file uses the following encoding: utf-8 runs with python.exe, but crashes when running under cscript. The errors are: Microsoft (R) Windows Script Host Version 5.6 Copyright (C) Microsoft Corporation 1996-2001. All rights reserved. Debugging interfaces not available - debugging is disabled.. Traceback (most recent call last): File "C:\Python25\Lib\site-packages\win32comext\axscript\client\error.py", lin e 86, in __BuildFromException self._BuildFromSyntaxError(site, value, tb) File "C:\Python25\Lib\site-packages\win32comext\axscript\client\error.py", lin e 104, in _BuildFromSyntaxError self.colno = offset - 1 TypeError: unsupported operand type(s) for -: 'NoneType' and 'int' pythoncom error: Unexpected exception in gateway method 'SetScriptState' and more errors follow. ---------------------------------------------------------------------- >Comment By: Ramon Garcia (ramong) Date: 2008-07-30 22:16 Message: Logged In: YES user_id=2163452 Originator: YES Fixed (mostly) after updating to Pywin32 211 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=551954&aid=2033080&group_id=78018 |