#63 open
zachriggle

Bug: Non-printing characters treated as whitespace

Reported by zachriggle | December 24th, 2010 @ 07:54 AM

What I did

Open a .pyc file.

What I expected to happen

The file contents are displayed.

What actually happened

Only the printing characters are displayed. Additionally, some of the line numberings appear to be off, but it may have to do with the way non-printing characters are handled.

See screenshot below in comments

Comments and changes to this ticket

  • zachriggle

    zachriggle December 24th, 2010 @ 07:54 AM

    Since I couldn't attach the binary dump, here is the first bit of that file:

        0000000: 03f3 0d0a d798 114d 6300 0000 0000 0000  .......Mc.......
        0000010: 000c 0000 0040 0000 0073 cc02 0000 6400  .....@...s....d.
        0000020: 0064 0100 6c00 005a 0000 6400 0064 0100  .d..l..Z..d..d..
        0000030: 6c01 005a 0100 6400 0064 0100 6c02 005a  l..Z..d..d..l..Z
        0000040: 0200 6400 0064 0100 6c03 005a 0300 6400  ..d..d..l..Z..d.
        0000050: 0064 0100 6c04 005a 0400 6400 0064 0100  .d..l..Z..d..d..
        0000060: 6c05 005a 0500 6400 0064 0200 6c06 006d  l..Z..d..d..l..m
        0000070: 0700 5a07 0001 7910 0064 0000 6401 006c  ..Z...y..d..d..l
        0000080: 0800 5a08 0057 6e22 0004 6509 006b 0a00  ..Z..Wn"..e..k..
        0000090: 728c 0001 0101 6400 0064 0100 6c0a 005a  r.....d..d..l..Z
        00000a0: 0a00 6403 0047 486e 0100 5864 0400 8400  ..d..GHn..Xd....
        00000b0: 005a 0b00 6405 0084 0000 5a0c 0064 0600  .Z..d.....Z..d..
        00000c0: 8400 005a 0d00 6407 0084 0000 5a0e 0064  ...Z..d.....Z..d
        00000d0: 0800 8400 005a 0f00 6409 0064 0a00 640b  .....Z..d..d..d.
        00000e0: 0064 0c00 640d 0064 0e00 640f 0064 1000  .d..d..d..d..d..
        00000f0: 6411 0064 1200 6413 0064 1400 670c 005a  d..d..d..d..g..Z
        0000100: 1000 6415 0064 1600 6417 0064 1800 6419  ..d..d..d..d..d.
        0000110: 0064 1a00 641b 0067 0700 5a11 0065 0000  .d..d..g..Z..e..
        0000120: 6a00 0083 0000 5a12 0065 0000 6a13 0065  j.....Z..e..j..e
        0000130: 1200 8301 005a 1400 6514 0064 1c00 195a  .....Z..e..d...Z
        0000140: 1500 6516 0065 1400 641d 0019 8301 005a  ..e..e..d......Z
        0000150: 1700 6517 0064 1e00 6b00 0072 5301 641f  ..e..d..k..rS.d.
        0000160: 0065 1800 6517 0083 0100 175a 1700 6e0c  .e..e......Z..n.
    
  • zachriggle
  • rsms

    rsms December 26th, 2010 @ 09:06 PM

    • State changed from “new” to “open”
    • Assigned user set to “rsms”
    • Tag set to @low, bug, charset, reading, text

    Uhm, could you please email me that file with nasty characters to kodapp•notion.se?

    Alternatively if you have a working dev setup of Kod: Open the file with a debug build and see what character encoding Kod uses to parse the file.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A text editor for Mac OS X

People watching this ticket

Pages