[resubmitted having pulled from sources and fixed careless mistake caused by manually entering a change that i'd made on another system, without testing it.] for the record, these are the changes: printf("%c", 0); could produce unexpected results (it read uninitialised memory) the utf function was in the wrong place, so never worked.