patch for replacing non-printable chars in filenames
Stefan Nehlsen
sn at ParlaNet.de
Fri Nov 26 08:09:15 GMT 2004
On Tue, Nov 23, 2004 at 05:29:57PM +0100, Paul Slootman wrote:
> + /* Replace non-printing chars in the string, most probably due to
> + * wierd filenames. Skip the first and last chars, they may be \n */
> + int i;
> + for (i=1; i<len-1; i++)
> + if (!isprint(buf[i]))
> + buf[i] = '?';
Is looping over strings a good idea in times of UTF-8?
cu, Stefan
--
Stefan Nehlsen | ParlaNet Administration | sn at parlanet.de | +49 431 988-1260
More information about the rsync
mailing list