diff options
author | Siri Hansen <[email protected]> | 2013-02-12 14:31:24 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2013-03-04 11:01:13 +0100 |
commit | 79406f338464a9ba94c8531c8a7a44a01ad14b42 (patch) | |
tree | fb84bd49dbf5157813987d3a3a0c5022dca58ef8 /lib/test_server/src/erl2html2.erl | |
parent | dab88ad5dc3a8dd23a898953fe48366d865074ea (diff) | |
download | otp-79406f338464a9ba94c8531c8a7a44a01ad14b42.tar.gz otp-79406f338464a9ba94c8531c8a7a44a01ad14b42.tar.bz2 otp-79406f338464a9ba94c8531c8a7a44a01ad14b42.zip |
[test_server] Fix encoding of HTML file references to work on windows
The URI encoding when in unicode file name mode did not preserve @, :
and /, and thus some links were did not work on windows (think
c:/). This has been corrected.
Diffstat (limited to 'lib/test_server/src/erl2html2.erl')
-rw-r--r-- | lib/test_server/src/erl2html2.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test_server/src/erl2html2.erl b/lib/test_server/src/erl2html2.erl index 9c0ca64173..5584c1e50c 100644 --- a/lib/test_server/src/erl2html2.erl +++ b/lib/test_server/src/erl2html2.erl @@ -126,7 +126,7 @@ build_html(SFd,DFd,Encoding,Functions) -> build_html(SFd,DFd,Encoding,file:read_line(SFd),1,Functions,false). build_html(SFd,DFd,Encoding,{ok,Str},L,[{F,A,L}|Functions],_IsFuncDef) -> - FALink = http_uri:encode(F++"-"++integer_to_list(A)), + FALink = test_server_ctrl:uri_encode(F++"-"++integer_to_list(A),utf8), file:write(DFd,["<a name=\"",to_raw_list(FALink,Encoding),"\"/>"]), build_html(SFd,DFd,Encoding,{ok,Str},L,Functions,true); build_html(SFd,DFd,Encoding,{ok,Str},L,[{clause,L}|Functions],_IsFuncDef) -> |