referring to #12
As noted in the inital Q&A, I aim to retrieve the log by a scipt ( not interactive in windows console). Also, this approach is not cross-platform. e.g. when my sphinx project is run on linux, this cp1252 is not useful.
> chcp = subprocess.Popen(('chcp', '1252'), bufsize=-1) --------------------------------------------------------------------------- WindowsError Traceback (most recent call last)
> in <module>()
C:\Programme\pythonxy\python\lib\subprocess.pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags) 592 p2cread, p2cwrite, 593 c2pread, c2pwrite, --> 594 errread, errwrite) 595 596 # On Windows, you cannot just redirect one or two handles: You
C:\Programme\pythonxy\python\lib\subprocess.pyc in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite) 814 env, 815 cwd, --> 816 startupinfo) 817 except pywintypes.error, e: 818 # Translate pywintypes.error to WindowsError, which is
WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden
Why can the content of .bzr\checkout\dirstate not be converted in a simple text file that is either UTF-8 or latin1?
referring to #12
As noted in the inital Q&A, I aim to retrieve the log by a scipt ( not interactive in windows console).
Also, this approach is not cross-platform. e.g. when my sphinx project is run on linux, this cp1252 is not useful.
> chcp = subprocess. Popen(( 'chcp', '1252'), bufsize=-1) ------- ------- ------- ------- ------- ------- ------- ------- ------- -----
-------
WindowsError Traceback (most recent call last)
> in <module>()
C:\Programme\ pythonxy\ python\ lib\subprocess. pyc in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
592 p2cread, p2cwrite,
593 c2pread, c2pwrite,
--> 594 errread, errwrite)
595
596 # On Windows, you cannot just redirect one or two handles: You
C:\Programme\ pythonxy\ python\ lib\subprocess. pyc in _execute_ child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
814 env,
815 cwd,
--> 816 startupinfo)
817 except pywintypes.error, e:
818 # Translate pywintypes.error to WindowsError, which is
WindowsError: [Error 2] Das System kann die angegebene Datei nicht finden
Why can the content of .bzr\checkout\ dirstate not be converted in a simple text file that is either UTF-8 or latin1?