Supporting those inaneness will not be possible without using a library. Since no one want to do this, this bug will likely never be closed.
(from redmine: created on 2013-07-14, closed on 2015-11-02)