diff --git a/stdlib/Manifest.toml b/stdlib/Manifest.toml index 858e5ea651339..4e4f48b4e6af4 100644 --- a/stdlib/Manifest.toml +++ b/stdlib/Manifest.toml @@ -191,7 +191,6 @@ uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7" version = "1.11.0" [[deps.Profile]] -deps = ["Unicode"] uuid = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" version = "1.11.0" diff --git a/stdlib/Profile/Project.toml b/stdlib/Profile/Project.toml index ede7ccd66bc8e..ad0107ecf9404 100644 --- a/stdlib/Profile/Project.toml +++ b/stdlib/Profile/Project.toml @@ -2,12 +2,6 @@ name = "Profile" uuid = "9abbd945-dff8-562f-b5e8-e1ebf5ef1b79" version = "1.11.0" -[deps] -Unicode = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5" - -[compat] -Unicode = "1.11.0" - [extras] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" Logging = "56ddb016-857b-54e1-b83d-db4d58db5568" diff --git a/stdlib/Profile/src/heapsnapshot_reassemble.jl b/stdlib/Profile/src/heapsnapshot_reassemble.jl index 27d7d12318ed1..50da13e550d82 100644 --- a/stdlib/Profile/src/heapsnapshot_reassemble.jl +++ b/stdlib/Profile/src/heapsnapshot_reassemble.jl @@ -2,8 +2,6 @@ module HeapSnapshot -using Unicode - """ assemble_snapshot(filepath::AbstractString, out_file::AbstractString) @@ -236,7 +234,7 @@ function print_str_escape_json(stream::IO, s::AbstractString) print(stream, "\\t") elseif '\x00' <= c <= '\x1f' print(stream, "\\u", lpad(string(UInt16(c), base=16), 4, '0')) - elseif !Unicode.isassigned(c) + elseif !isvalid(c) # we have to do this because vscode's viewer doesn't like the replace character print(stream, "[invalid unicode character]") else