[darcs-devel] darcs patch: rewrite ColourPrinter with a policy

ptp at lysator.liu.se ptp at lysator.liu.se
Tue Apr 5 04:33:32 PDT 2005


Here is the environment controlling of darcs escaping.
I will write the documentation and fix some test cases later.

I will also try to do the escaping/coloring of trailing spaces.

This change will always escape \r which may be annoying if
all lines end with \r\n, but it fixes the security issue.
This might require more finetuning, e.g., not escaping \r
at end of lines.  But maybe that should be optional on an
environment variable too.



Sun Apr  3 21:02:23 CEST 2005  Tommy Pettersson <ptp at lysator.liu.se>
  * rewrite ColourPrinter with a policy data type (fixes RT#302)
  - better control of color and escaping
  - colored strings are escaped too
  - policy is determined with only synchronous IO

Mon Apr  4 14:19:04 CEST 2005  Tommy Pettersson <ptp at lysator.liu.se>
  * propagate policy data all the way down to no_escape in ColourPrinter

Mon Apr  4 14:25:07 CEST 2005  Tommy Pettersson <ptp at lysator.liu.se>
  * make escaping of output controllable with environment variables
  DARCS_DONT_ESCAPE_ANYTHING  turns off all escaping
  DARCS_DONT_ESCAPE_ISPRINT   use systems locale (works for single-byte)
  DARCS_DONT_ESCAPE_8BIT      works for UTF-8

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/x-darcs-patch
Size: 137991 bytes
Desc: A darcs patch for your repository!
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20050405/2f74847a/attachment.bin
-------------- next part --------------
_______________________________________________
darcs-devel mailing list
darcs-devel at darcs.net
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel


More information about the darcs-devel mailing list