CGIHTTPServerのバグ
CGIHTTPServerでCGIのHello Worldを試してみたのですが、
なぜか動きませんでした。
ログを見ると、こんなメッセージが・・・
localhost - - [11/Oct/2009 19:08:33] command: C:\Python26\python.exe -u d:\Owner\My Documents\WebPage\dist\cgi-bin\hello.py "" localhost - - [11/Oct/2009 19:08:34] C:\Python26\python.exe: can't open file 'd:\Owner\My': [Errno 2] No such file or directory
CGIHTTPServer.pyの273行目を見ると果たして次のような記述が
cmdline = "%s -u %s" % (interp, cmdline)
クォーテーションを付け直すと正しく動きました。
cmdline = '%s -u "%s"' % (interp, cmdline)
これってバグなんでしょうか?
バグだと思いますけど、これってどこに報告すればいいんでしょうか?