[Vm-dev] Help: weird bug in inspecting characters

Ron Teitelbaum ron at usmedrec.com
Mon Jul 2 17:29:49 UTC 2018

That is strange.

On Squeak 4.1

$^ charCode -> 94
94 asCharacter -> $^
128 asCharacter -> $€ charCode -> 128  (doesn't show properly in text on
email but does in squeak, see image).

In other words, if I use my keyboard to type it in, it seems to be
represented fine and it evaluates to charCode 94 as expected.

But something created with 128 charCode also is represented with the same
symbol and it also retains it's 128 charCode as you can see with you send
charCode to the string representation that was created.

If this was filed out it would seem that either version could have been
used in the code and you wouldn't notice it.  Manually changing it by
typing in ^ and fileing it out again will probably fix it.  An external
editor changing 128 to 94 chars will also probably work.

All the best,

Ron Teitelbaum

On Mon, Jul 2, 2018 at 12:23 PM, Eliot Miranda <eliot.miranda at gmail.com>

> Hi Subbu,
> > On Jul 2, 2018, at 7:24 AM, K K Subbu <kksubbu.ml at gmail.com> wrote:
> >
> > Hi,
> >
> > I need help in tracing a bug (see attached picture) which triggered a
> MNU while trying to view a .cs file in FileTool. I traced the problem to
> peek on aStream returning a nil because a wrong character code was being
> returned in generated.
> >
> > In the attached picture, aStream isBinary is false and the basicNext
> returns the correct $^ character which gets stored in character1 local var.
> But an inspector displays it as Character 128. In the same inspector window
> $^ shows the correct character code as 94.
> >
> > This is on Squeak5.2alpha-64b-Linux-18127. What is happening here?
> No idea.  Do you have a test case?
> > Has anyone seen this type of behavior before?
> >
> >
> > Thanks in advance .. Subbu
> > <strangeCharBug.png>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180702/757f862e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Capture.PNG
Type: image/png
Size: 9234 bytes
Desc: not available
URL: <http://lists.squeakfoundation.org/pipermail/vm-dev/attachments/20180702/757f862e/attachment-0001.png>

More information about the Vm-dev mailing list