]> gitweb.factorcode.org Git - factor.git/commitdiff
bootstrap.stage2: strip out UTF16 encoding. It will only be loaded again if needed...
authorSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 12 May 2009 09:02:08 +0000 (04:02 -0500)
committerSlava Pestov <slava@slava-pestovs-macbook-pro.local>
Tue, 12 May 2009 09:02:08 +0000 (04:02 -0500)
basis/bootstrap/stage2.factor

index 9d19e4a2315dbee4e875d9b620996d06356a4e16..3cbe155dd2df7725442462db6ba257258975e49f 100644 (file)
@@ -12,6 +12,16 @@ SYMBOL: core-bootstrap-time
 
 SYMBOL: bootstrap-time
 
+: strip-encodings ( -- )
+    os unix? [
+        [
+            P" resource:core/io/encodings/utf16/utf16.factor" 
+            P" resource:core/io/encodings/utf16n/utf16n.factor" [ forget ] bi@
+            "io.encodings.utf16" 
+            "io.encodings.utf16n" [ child-vocabs [ forget-vocab ] each ] bi@
+        ] with-compilation-unit
+    ] when ;
+
 : default-image-name ( -- string )
     vm file-name os windows? [ "." split1-last drop ] when
     ".image" append resource-path ;
@@ -55,6 +65,8 @@ SYMBOL: bootstrap-time
     "math compiler threads help io tools ui ui.tools unicode handbook" "include" set-global
     "" "exclude" set-global
 
+    strip-encodings
+
     (command-line) parse-command-line
 
     ! Set dll paths