explicit getLines(n) ensures platform-independence -- our files follow the POSIX standard, not DOS;
authorwenzelm
Mon, 10 May 2010 17:07:47 +0200
changeset 36784 cf36fd1e4cda
parent 36783 80ced7c7505f
child 36785 55025bd6605f
explicit getLines(n) ensures platform-independence -- our files follow the POSIX standard, not DOS;
src/Pure/System/isabelle_system.scala
--- a/src/Pure/System/isabelle_system.scala	Mon May 10 15:18:57 2010 +0200
+++ b/src/Pure/System/isabelle_system.scala	Mon May 10 17:07:47 2010 +0200
@@ -306,7 +306,7 @@
   private def read_symbols(path: String): List[String] =
   {
     val file = platform_file(path)
-    if (file.isFile) Source.fromFile(file).getLines().toList
+    if (file.isFile) Source.fromFile(file).getLines("\n").toList
     else Nil
   }
   val symbols = new Symbol.Interpretation(