1812 – DDOC - Unicode identifiers are not correctly marked.

D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 1812 - DDOC - Unicode identifiers are not correctly marked.
Summary: DDOC - Unicode identifiers are not correctly marked.
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D1 (retired)
Hardware: x86 Windows
: P2 major
Assignee: Walter Bright
URL:
Keywords: ddoc, patch
Depends on:
Blocks:
Reported: 2008年01月30日 15:24 UTC by Burton Radons
Modified: 2014年02月24日 15:31 UTC (History)
1 user (show)

See Also:


Attachments
UTF-8 source code showing the problem. (74 bytes, text/plain;charset=utf-8)
2008年01月30日 15:28 UTC, Burton Radons
Details
Documentation produced by "dmd -D test.d". (485 bytes, text/html;charset=utf-8)
2008年01月30日 15:28 UTC, Burton Radons
Details
Use Unicode parsing for identifiers. (910 bytes, patch)
2009年03月29日 23:45 UTC, Unknown W. Brackets
Details | Diff
Add an attachment (proposed patch, testcase, etc.)

Note You need to log in before you can comment on or make changes to this issue.
Description Burton Radons 2008年01月30日 15:24:05 UTC
If a D identifier contains Unicode (such as führer), it will not be correctly marked by DDOC, presumably because DDOC's way of finding identifiers was not upgraded when D started allowing Unicode identifiers. Since there is no reasonable workaround, I've given it major severity. The two attachments are the source (in UTF-8) and the documentation produced from "dmd -D test.d".
Comment 1 Burton Radons 2008年01月30日 15:28:20 UTC
Created attachment 222 [details] 
UTF-8 source code showing the problem.
Comment 2 Burton Radons 2008年01月30日 15:28:56 UTC
Created attachment 223 [details] 
Documentation produced by "dmd -D test.d".
Comment 3 Matti Niemenmaa 2008年01月31日 01:12:57 UTC
Looking at the attachments, it seems to work. What's the expected output?
BTW, DDoc is (a lot) newer than D's support for Unicode identifiers.
Comment 4 Burton Radons 2008年01月31日 01:27:13 UTC
What you should see is that the first fuhrer is underlined, but the second is not, because it's not converted into a DDOC_DECL.
And hm, you're right - DDoc was 0.132, while Unicode identifiers was 0.74. I guess I just noticed them in the opposite order.
Comment 5 Matti Niemenmaa 2008年01月31日 15:48:13 UTC
I see, I didn't notice the missing underlining at all. Right you are, a bug it is.
Comment 6 Unknown W. Brackets 2009年03月29日 23:45:14 UTC
Created attachment 304 [details] 
Use Unicode parsing for identifiers.
This patch makes DDoc use Unicode to parse identifiers, which makes it properly match them in the doc comments and etc.
-[Unknown]
Comment 7 Ali Cehreli 2009年09月17日 12:03:31 UTC
Wanted to add that function parameters with unicode characters don't appear in the generated documentation as well.
/**
 * BUG: The parameters are not listed under Params in the generated output
 *
 * Params:
 * ü = first
 * ş = second
 * ğ = third
 *
 */
int foo(int ü, int ş, int ğ)
{
 return ğ;
}
Comment 8 Walter Bright 2009年11月06日 11:29:43 UTC
Fixed dmd 1.051 and 2.036


AltStyle によって変換されたページ (->オリジナル) /