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 | [EMAIL PROTECTED] | +49 431 988-1260 -- To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/rsync Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html