tuned;
authorwenzelm
Fri, 05 Jul 2024 10:55:02 +0200
changeset 80507 8e4731a2a041
parent 80506 ddefb18b5b88
child 80508 8585399f26f6
tuned;
src/Pure/General/scan.scala
src/Tools/jEdit/jedit_main/scala_console.scala
--- a/src/Pure/General/scan.scala	Fri Jul 05 00:21:47 2024 +0200
+++ b/src/Pure/General/scan.scala	Fri Jul 05 10:55:02 2024 +0200
@@ -436,7 +436,7 @@
     reader.isInstanceOf[Byte_Reader]
 
   def reader_decode_utf8(is_utf8: Boolean, s: String): String =
-    if (is_utf8) UTF8.decode_permissive(Bytes.raw(s)) else s
+    if (is_utf8) Bytes.raw(s).text else s
 
   def reader_decode_utf8(reader: Reader[Char], s: String): String =
     reader_decode_utf8(reader_is_utf8(reader), s)
--- a/src/Tools/jEdit/jedit_main/scala_console.scala	Fri Jul 05 00:21:47 2024 +0200
+++ b/src/Tools/jEdit/jedit_main/scala_console.scala	Fri Jul 05 10:55:02 2024 +0200
@@ -50,7 +50,7 @@
 
     override def flush(): Unit = {
       val s = buf.synchronized { val s = buf.toString; buf.clear(); s }
-      val str = UTF8.decode_permissive(Bytes.raw(s))
+      val str = Bytes.raw(s).text
       GUI_Thread.later {
         if (global_out == null) java.lang.System.out.print(str)
         else global_out.writeAttrs(null, str)