Cygwin の Python と日本語

http://www.okisoft.co.jp/esc/cygwin-15a.html
Python 2.5.1
/usr/lib/python2.5/site-packages/sitecustomize.py に

from encodings import aliases
aliases.aliases['us_ascii'] = 'cp932'

import sys
sys.setdefaultencoding('shift_jis')

でOK。


これが原因で、Beautiful Soup を使うときに問題が出た。
http://omokiti.seesaa.net/article/1117434.html