[Seaside] WideString bug in Seaside?

tty gettimothy at zoho.com
Thu Feb 20 15:36:33 UTC 2020


Hi Folks,

I may have stumbled upon a Seaside bug.

I am able to turn the "unicode spew" bug on and off at will.

at http://menmachinesmaterials.com/WikitextParser

The middle tab "wikicode" is the culprit.

The code for it is here:

*renderWikicodeOn: html
	|src|
	wikicode isNil
		ifTrue:[src :=  '== Welcome To WikitextParserBrowser ==']
		ifFalse:[src := wikicode].
	html break;break.	

	src class = WideString
		ifTrue:[src := 'buggy'].	

	html preformatted:src*


The following input will blow up the render when the WideString check is
commented out:
*
testmDashThierryIV
"scratch test"

^ ' ''''''Thierry IV'''''' or ''''''Theoderic IV'''''' ({{circa}}
720{{spaced ndash}}c. 782) was a [[Franks|Frankish]] noble. Count of
[[Autun]] and [[Toulouse]]; he was thought to be a son of [[Sigebert V]],
and grandson of [[Sigebert IV of Raze]]. It is now well documented that his
supposed Davidic blood was a hoax (see [[Priory of Sion]]). Thierry married
[[Auda of France|Auda]], daughter of [[Charles Martel]], sister of [[Pepin
III]].

==Children==
*[[William of Gellone]] (755 – 28 May 812/4)
*Alda of Gellone (born ca. 770); married Fredalon
*[[Adalhelm of Autun]]

{{Persondata 
| NAME              = Thierry 04
| ALTERNATIVE NAMES =
| SHORT DESCRIPTION = Frankish noble
| DATE OF BIRTH     =
| PLACE OF BIRTH    =
| DATE OF DEATH     =
| PLACE OF DEATH    =
}}
{{DEFAULTSORT:Thierry 04}}
[[Category:720s births]]
[[Category:780s deaths]]
[[Category:Counts of Autun]]
[[Category:Counts of Toulouse]]
[[Category:Frankish people]]

{{France-noble-stub}}'*

If  I leave that check in, then the html renders perfectly, and the Wikicode
tab just displays "buggy"
If I remove that check, the "unicode spew" problem happens.


I have tried several different html tags besides preformatted including
text: html: code: textArea:

None of that made a difference.


The difference between the HTML and WIKICODE display is that the html passes
through the XTreams Parsing and a grammar rule exists that changes the
'mdash' to a simple '-'.

The original Wikicode that is parsed does not have those characters
replaced.







--
Sent from: http://forum.world.st/Seaside-General-f86180.html


More information about the seaside mailing list