From 5947f3cf074d136d2ade2c3f456a5b356aaee4b0 Mon Sep 17 00:00:00 2001 From: Michael Hatherly Date: Wed, 30 Sep 2015 21:26:00 +0200 Subject: [PATCH] Fix error in type summaries Types with fields containing unicode characters would throw an error since the initial type of the `parts` vector would be ASCII instead of utf8. --- base/docs/Docs.jl | 2 +- test/docs.jl | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/base/docs/Docs.jl b/base/docs/Docs.jl index 63672a90941ad..9988ed016d7ff 100644 --- a/base/docs/Docs.jl +++ b/base/docs/Docs.jl @@ -326,7 +326,7 @@ end doc(f::Base.Callable, args::Any...) = doc(f, Tuple{args...}) function typesummary(T::DataType) - parts = [ + parts = UTF8String[ """ **Summary:** ```julia diff --git a/test/docs.jl b/test/docs.jl index 52b0b84ced72a..5bd3c47073d8d 100644 --- a/test/docs.jl +++ b/test/docs.jl @@ -318,6 +318,9 @@ end @test isdefined(MacroGenerated, :_g) +# Issue #13385. +@test @doc(I) !== nothing + # Issue #12700. @test @doc(DocsTest.@m) == doc"Inner.@m"