On Fri, Sep 15, 2006 at 05:48:20PM +0200, Georg Baum wrote: > Enrico Forestieri wrote: > > > On Fri, Sep 15, 2006 at 03:54:12PM +0200, Georg Baum wrote: > >> The full understanding statement applies to your fix as well IMO. How do > >> you know that dt2dv can cope with non-ascii chars at all? > > > > Because isprint would not fail in a locale aware environment when the > > locale is iso-8859-1 and its argument is 246 (ö). > > That assumes that the author actually knew that isprint() depends on the > current locale. Given the age of the code I am not sure he did.
Good point. > > However, I found that not all non-ascii chars cause problems and I can't > > understand why. > > Maybe because some are not printable in the current locale, and some are? No, there is no locale support on cygwin. Quoting the man page: "isprint returns non-zero if its argument is a printing character (`0x20'-`0x7E')." So it should return zero for any non-ascii character, but if I use \pdfauthor{à} dt2dv succeeds, whereas with \pdfauthor{ö} it fails. I plan to debug this strange thing. -- Enrico