Benedikt Schmidt <[EMAIL PROTECTED]> writes:

[..]
> This patch uses fn2ps_no_escape for converting the FileNames to
> PackedStrings in applyToPop. Another possibility would be using
> FileNames instead of PackedStrings for the nameI and creationNameI
> fields.
[..]
> +{-# INLINE fn2ps_no_escape #-}
> +fn2ps_no_escape :: FileName -> PackedString
> +fn2ps_no_escape (FN fp) = packWords $ encode fp

fn2ps_no_escape (FN fp) = packWords $ map (toEnum.fromEnum) fp

without the UTF8.encode seems to be better since it handles
"darcs annotate <unicode filename>" too.
I'll do some more tests and send a new patch later.

Benedikt


_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to