latest rev. getcharmap causes memory dislocation, needs debug