From 9f09463d2f7eeacec7ff1766b647a7ed32a73991 Mon Sep 17 00:00:00 2001 From: Slava Pestov <slava@shill.internal.stack-effects.com> Date: Tue, 14 Apr 2009 19:24:32 -0500 Subject: [PATCH 1/2] help.html: workaround for cygwin not liking unicode path names --- basis/help/html/html.factor | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/basis/help/html/html.factor b/basis/help/html/html.factor index d880af5b55..3de8dae218 100644 --- a/basis/help/html/html.factor +++ b/basis/help/html/html.factor @@ -4,24 +4,26 @@ USING: io.encodings.utf8 io.encodings.ascii io.encodings.binary io.files io.files.temp io.directories html.streams help kernel assocs sequences make words accessors arrays help.topics vocabs tools.vocabs help.vocabs namespaces prettyprint io -vocabs.loader serialize fry memoize unicode.case math.order +vocabs.loader serialize fry memoize ascii unicode.case math.order sorting debugger html xml.syntax xml.writer ; IN: help.html : escape-char ( ch -- ) - dup H{ - { CHAR: " "__quo__" } - { CHAR: * "__star__" } - { CHAR: : "__colon__" } - { CHAR: < "__lt__" } - { CHAR: > "__gt__" } - { CHAR: ? "__que__" } - { CHAR: \\ "__back__" } - { CHAR: | "__pipe__" } - { CHAR: / "__slash__" } - { CHAR: , "__comma__" } - { CHAR: @ "__at__" } - } at [ % ] [ , ] ?if ; + dup ascii? [ + dup H{ + { CHAR: " "__quo__" } + { CHAR: * "__star__" } + { CHAR: : "__colon__" } + { CHAR: < "__lt__" } + { CHAR: > "__gt__" } + { CHAR: ? "__que__" } + { CHAR: \\ "__back__" } + { CHAR: | "__pipe__" } + { CHAR: / "__slash__" } + { CHAR: , "__comma__" } + { CHAR: @ "__at__" } + } at [ % ] [ , ] ?if + ] [ number>string "__" "__" surround ] if ; : escape-filename ( string -- filename ) [ [ escape-char ] each ] "" make ; From 8bbc3d577e58ffcf5813d591185df1cd5d77d887 Mon Sep 17 00:00:00 2001 From: Slava Pestov <slava@shill.internal.stack-effects.com> Date: Tue, 14 Apr 2009 19:57:25 -0500 Subject: [PATCH 2/2] Load fix --- basis/help/html/html.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/basis/help/html/html.factor b/basis/help/html/html.factor index 3de8dae218..f4a8742486 100644 --- a/basis/help/html/html.factor +++ b/basis/help/html/html.factor @@ -5,7 +5,7 @@ io.files io.files.temp io.directories html.streams help kernel assocs sequences make words accessors arrays help.topics vocabs tools.vocabs help.vocabs namespaces prettyprint io vocabs.loader serialize fry memoize ascii unicode.case math.order -sorting debugger html xml.syntax xml.writer ; +sorting debugger html xml.syntax xml.writer math.parser ; IN: help.html : escape-char ( ch -- ) @@ -23,7 +23,7 @@ IN: help.html { CHAR: , "__comma__" } { CHAR: @ "__at__" } } at [ % ] [ , ] ?if - ] [ number>string "__" "__" surround ] if ; + ] [ number>string "__" "__" surround % ] if ; : escape-filename ( string -- filename ) [ [ escape-char ] each ] "" make ;