added escape_malformed (failsafe);
authorwenzelm
Wed, 11 Jul 2007 00:29:49 +0200
changeset 23727 39f8d1480d55
parent 23726 2ebecff57b17
child 23728 8409a0cd5b04
added escape_malformed (failsafe);
src/Pure/General/output.ML
--- a/src/Pure/General/output.ML	Tue Jul 10 23:29:53 2007 +0200
+++ b/src/Pure/General/output.ML	Wed Jul 11 00:29:49 2007 +0200
@@ -31,6 +31,7 @@
   val output_width: string -> output * int
   val output: string -> output
   val escape: output -> string
+  val escape_malformed: string -> string
   val std_output: output -> unit
   val std_error: output -> unit
   val immediate_output: string -> unit
@@ -75,7 +76,9 @@
 
 fun output_width x = #output (get_mode ()) x;
 val output = #1 o output_width;
+
 fun escape x = #escape (get_mode ()) x;
+val escape_malformed = escape o translate_string output;