npp-plugins / converter

Other
37 stars 15 forks source link

ASCII -> HEX Not Working For Some Characters #2

Closed james-kosin closed 7 years ago

james-kosin commented 7 years ago

I've experienced some problems with the ASCII -> HEX conversion that is a bit ODD on 64-bit version of Notepad++.

The NUL character (hex 00) will convert to hex 20 instead of 00, and if the ASCII string contains the (hex FF) character the conversion will NOT occur.

I think these may be a result of the recent changes for the following version: Notepad++ v7.3.3 (64-bit) Build time : Mar 8 2017 - 03:39:58 Path : C:\Program Files\Notepad++\notepad++.exe Admin mode : OFF Local Conf mode : OFF OS : Windows 10 (64-bit) Plugins : mimeTools.dll NppConverter.dll

NOTE: If I change the 20 hex values back to 00 then the conversion from HEX -> ASCII is correct for the NUL character.

james-kosin commented 7 years ago

Seems to be a problem caused by this patch to Scintilla: https://sourceforge.net/p/scintilla/bugs/1289/ At least the NUL characters getting converted to spaces.

james-kosin commented 7 years ago

Microsoft also indicates the CLIPBOARD FORMATS are as follows: https://msdn.microsoft.com/en-us/library/windows/desktop/ff729168(v=vs.85).aspx

Most of the relevant ones indicate a NUL character (00) terminates the copy string... so, there is not a good way to implement.

james-kosin commented 7 years ago

Really nothing we can do; but write a new plugin for Notepad++ that works as expected on binary data....

james-kosin commented 7 years ago

Probably can't fix. 👎