NotePad_53.10 0x7F bug

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
AlexBene
Posts: 5
Joined: Wed Dec 18, 2013 12:35 pm

NotePad_53.10 0x7F bug

Post by AlexBene »

================================================================================
NotePad 53.10 (20/11/11)
Written 2003-2004 by Stephan Rupprecht
================================================================================
Report_2014.02.17.0001_NotePad_53.10
By: Alexander Benedictov
[email protected]
================================================================================
When pasting a single string or block of text
with ASCII characters 0x7F in them into NotePad,
characters 0x7F are deleted from resulting string
or block of text in NotePad.

CLI 52.4 (10/05/07) and TurboText from AmigaForever
2012 do paste strings with 0x7F correctly -
the resulting strings contain 0x7F.
================================================================================
User avatar
mechanic
Posts: 510
Joined: Sat Jun 25, 2011 10:22 pm

Re: NotePad_53.10 0x7F bug

Post by mechanic »

AlexBene wrote: When pasting a single string or block of text
with ASCII characters 0x7F in them into NotePad,
characters 0x7F are deleted from resulting string
or block of text in NotePad.
No problem here. Works from CLI, Timberwolf, other NotePad....
:?
A-Eon A1X1000 ATI HD6850, Creative SB1570 PCIe, RTL8139 net PCI.
User avatar
gazelle
Posts: 102
Joined: Sun Mar 04, 2012 12:49 pm
Location: Frohnleiten, Austria

Re: NotePad_53.10 0x7F bug

Post by gazelle »

I'm not sure if you can call it a bug. I think notepad does filter out some chars which are control chars (0x00 - 0x1f, 0x7f - 0x9f). It is a text editor after all.

I had troubles copy & pasting UTF-8 strings with notepad.
User avatar
Amigo1
Posts: 221
Joined: Sun Jan 01, 2012 3:32 pm

Re: NotePad_53.10 0x7F bug

Post by Amigo1 »

This version of NotePad has another bug, the first time a file is saved, it does not check if the file already exists and just overwrites it.
to reproduce
1) copy 2 files to RAM:
2) Open NotePad (I did via AmiDock)
3) type some garbage
4) click save
5) in ASL go to ram: and by accident click on one file name you previously copied
6) save
The file is overwritten without notice

if you then modify the file in notepad again, select "Save as.." and choose the second file previously copied to RAM, an info requester asks for confirmation.

scary!
User avatar
Rigo
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 363
Joined: Mon Jan 17, 2011 9:42 pm

Re: NotePad_53.10 0x7F bug

Post by Rigo »

This has been fixed internally, and is available from Notepad 53.11

Simon
Belxjander
Posts: 315
Joined: Mon May 14, 2012 11:26 pm
Location: 日本千葉県松戸市 / Matsudo City, Chiba, Japan
Contact:

Re: NotePad_53.10 0x7F bug

Post by Belxjander »

gazelle wrote:I'm not sure if you can call it a bug. I think notepad does filter out some chars which are control chars (0x00 - 0x1f, 0x7f - 0x9f). It is a text editor after all.

I had troubles copy & pasting UTF-8 strings with notepad.
Correct UTF-8 has 0x7F mapped as a control character (US-ASCII Delete) and the correct behaviour interprets it as a character delete operation from a Keyboard event,

I do not know of it being valid for a non keyboard input so filtering non-glyph character codes with control and not whitespace meaning would appear correct to my understanding at least.

UTF-8 Encoding would have values 128-192 when not a glyph in the first 0-127 range or the marker codes of 0xC0-C3 0xE0-EF and 0xF0-F7

I do however understand that the ISO-2022-CN/JP/KR series is more trouble in being escape code prefixed double-octet per glyph strings with 16 bits per glyph giving higher chances of strange behaviour on misunderstanding,
Post Reply