PR: 58166 Submitted by: Cheng-Lung Sung <clsung@dragon2.net>
PR: 32132 Submitted by: Sergey Skvortsov <skv@protey.ru>