clone from https://gitorious.org/fromcvs/rcsparse/source/d8303aabd0c559e2e3c4e0409549230883e64991: