I18N problem. Locale is zh_CN.UTF-8. Encoding utf-8.
When an all capital word, like SVN, appears in a heading
---++ This is a SVN topic
the generated anto-anchor is broken. Something like:
<a name="This is a <a href="SVN">SVN</a> topic">This is a SVN Topic"</a>
Cause: This bug is caused by lib/TWiki/Render.pm : makeAnchorName()
$anchorName =~ s/($TWiki::regex{wikiWordRegex})/_$1/go;
All capital word is not matched by this line.
Hotfix: edit lib/TWiki.pm
< $regex{wikiWordRegex} = qr/[$regex{upperAlpha}]+[$regex{lowerAlphaNum}]+[$regex{upperAlpha}]+[$regex{mixedAlphaNum}]*/o;
> $regex{wikiWordRegex} = qr/[A-Z]{3,}|[$regex{upperAlpha}]+[$regex{lowerAlphaNum}]+[$regex{upperAlpha}]+[$regex{mixedAlphaNum}]*/o;
--
TWiki:Main/FengZhaolin
- 14 Mar 2009
Thanks Feng for reporting this bug! At
TWiki:Codev/GeorgetownReleaseMeeting2009x03x23
we decided to re-prioritize this bug to normal. The impact of the proposed fix needs to be investigated carefully.
--
TWiki:Main.PeterThoeny
- 24 Mar 2009