Copy/Paste Can't Handle Nonprinting Characters
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ghex (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: ghex
I was trying to create a binary file. In insert mode, I selected a 32-byte region consisting solely of 0x90 bytes, copied it (tried both menu and CTRL+C) and pasted (both menu and CTRL+V). Instead of getting the text I had copied, I got this in the text field:
"\Uffffffff\
Further testing with other text gave three different results seemingly at random; result 3 is the most common.
1) The paste command did nothing
2) The program quit abruptly
3) Non-printing characters below 0x7f are ignored, all bytes from 0x80 to 0xff inclusive are replaced with "\Uffffffff" in the text and the hex values corresponding to this string in the binary field.
I'm running Ubuntu 8.10 (Intrepid Ibex), with the following output from apt-cache policy ghex:
ghex:
Installed: 2.22.0-1ubuntu1
Candidate: 2.22.0-1ubuntu1
Version table:
*** 2.22.0-1ubuntu1 0
500 http://
500 http://
100 /var/lib/
I have attached a screenshot of the program after the problem indicated. The selected region in gray is what was pasted, the first two lines above the pasted region it is what was copied.
It appears to be treating the text as ASCII characters and trying to convert the text to Unicode, where \Uffffffff (32-bit representation of -1) represents any code unit that isn't assigned to a code point.