[Seaside] A heisenbug (was Unicode Spew)

tty gettimothy at zoho.com
Tue Feb 18 20:12:53 UTC 2020


Wierd stuff.

The "unicode spew" wasn't what it seemed to be; rather, the final generated
html looked like this:

<html>
<head></head>
<body><�!DOCTYPE
html><�html><�head><�title>Seaside<�/title><�meta
charset="utf-8"/><�link rel="stylesheet" type="text/css"
href="/files/WADevelopmentFiles/development.css"/><�/head><�body
onload="onLoad()"><�a
href="/waDebug?_s=HYflc3WPAZnUmxcX&amp;_k=oAlI2TSho5n4-x6m&amp;1">standard
dash<�/a>&nbsp;<�a h
</body>
</html>

The output was being output to the <body> tag, not the top level.

I isolated the culprit.

Character value: 8211 


I Copied and modified the WACounter example as WADebug to generate the
error; the callbacks are 'dash' and 'ndash' instead of 'increase' and
'decrease'


ndash
	count := (Character value:8211) asString

dash
	count := '-'



http://menmachinesmaterials.com/waDebug

Unfortunately, it works, and I do not know why.

I run the same thing on my local workstation and I get the "unicode spew"
problem.

But wait! it gets weirder still.

When I deployed to the server, where it works, my workstation version
started working too.

Yet, when I saved the method with the demo text under a new method name, the
error returned.

Anybody seen these symptoms before?

thanks in advance.







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


More information about the seaside mailing list