As suggested by Greg Shenaut <gkshenaut at ucdavis.edu>, the following statement would be closer to the original intention of the upstreams author: if (isspace(c) && isascii(c)) ch = ' '; Regards, -- Jean-Baptiste Quenot http://caraldi.com/jbq/