I found that if I copy a text with NUL characters (zero ASCII code) and paste it somewhere, the text gets truncated to the 1st NUL character. So I have to replace \x00 by \n first and then copy the text block.
I am not sure how this should work and whether it's the problem of copying and Windows Clipboard or the programs I try to paste the text into (Notepad, Outlook, FAR editor...).
Since I don't see this problem with Notepad and FAR, I think they must be removing NUL characters from the text being copied to the clipboard, or remove them during opening the file at all.
Is there any options in Notepad++ that could do this automatically? Or it's some kind of a bug?
And if you're curious what files contain NUL characters -- that's build logs generated by Visual Studio. =\
Thanks,
Alexander
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The standard paste tool is implemented by the Scintilla editor component and it adheres to the standard which is to stop at a NUL character. Most other programs will adhere to this standard too. The TextFX copy and paste tools can handle NUL bytes. Turn on TextFX Viz Settings Capture Keyboard Ctrl-C,X,V and with the help of other nearby settings you should be able to get the NUL clipboard handling you need.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks, but I couldn't make it work. I have turned on TextFX Viz Settings Capture Keyboard Ctrl-C,X,V, restarted Notepad++, but copy-paste still truncates at the first NUL character.
What more settings do I need to change?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi!
I found that if I copy a text with NUL characters (zero ASCII code) and paste it somewhere, the text gets truncated to the 1st NUL character. So I have to replace \x00 by \n first and then copy the text block.
I am not sure how this should work and whether it's the problem of copying and Windows Clipboard or the programs I try to paste the text into (Notepad, Outlook, FAR editor...).
Since I don't see this problem with Notepad and FAR, I think they must be removing NUL characters from the text being copied to the clipboard, or remove them during opening the file at all.
Is there any options in Notepad++ that could do this automatically? Or it's some kind of a bug?
And if you're curious what files contain NUL characters -- that's build logs generated by Visual Studio. =\
Thanks,
Alexander
The standard paste tool is implemented by the Scintilla editor component and it adheres to the standard which is to stop at a NUL character. Most other programs will adhere to this standard too. The TextFX copy and paste tools can handle NUL bytes. Turn on TextFX Viz Settings Capture Keyboard Ctrl-C,X,V and with the help of other nearby settings you should be able to get the NUL clipboard handling you need.
Thanks, but I couldn't make it work. I have turned on TextFX Viz Settings Capture Keyboard Ctrl-C,X,V, restarted Notepad++, but copy-paste still truncates at the first NUL character.
What more settings do I need to change?
It worked! Thank you very much!