You are here: PSPad forum > Bug report / Hlášení chyb > Cannot save OEM characters

Cannot save OEM characters

#1 Cannot save OEM characters

Posted by: Freeman | Date: 09/23/2013 10:47 | IP: IP Logged

Regarding to this topic.

PSPad looses block characters when saving this sample using OEM encoding, but saving to UTF-8 works. I've wrote about it before.

▄███████████████████▄
███████████████████████▄
▄███░▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒███ ▄████████████▄
▄██▓▓▓▒▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓██▒ ███▓░░ ░█████▄
▄██████████░▒███████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░▒▒▓████▓ ▓██▄
▄███ ░███▒▒▒▓▒▒▒▓█████▒▓▓▓▓▓▓▓▓▓▓▓███▓▒▒▒▒██ █████████▓ ▒██
██ ░▓███░ ░█▓▒▓▓▒▓█████▓▒▒▒▒▒▒▒▒▒▒▒▒▓█████▓▒▒█ ██████████████▓ ██
█▓ ▒█████████▒ █▓▒▒▓███▒░░▒▒▓▓███████▓▓▓▒▓▒███▓█ ████░ ▒█▓▒██ ░ ▓█
█░ ████▓ ▒████░ █▓███▓▒▓██▓▓▓▓▓▓▒▒▒▓▓▒▒▒▒▒▒▓▓██░▓██▒ ░████▒ █▒▒██ ▒░ █
█▒ ░████ ███ ░█▓█ ████▓▓▓███████▒▒▓▓▒▒███████████▓▓█ ████████████▒██ ░░ █
█ ░ █░█ █████████░█ ░ ██░▓████▓ ▓███▓▒████▓ ▓███▓████▒ ░██░▒▒██ ▄█
█ ▒ █▒█ █▓█ ▓████ ░ ▒████▓ ▓██▓█▓ ▓█▓▓▒▓█ ████▒ ██████
█ ▒ ██ █░█ ░▒░ ░▓ ░░ ██▓ █▓▓ ███▄ ███████░░░ ▓█▓▓██▀
█ ░▒ ███░▓█ ░▒▒▒░ █▓ ▄███ ▓█▓█▓ ▀███ █ ▒█▓█▓ ▓██▓▓███
██ ░░ ░▓███░░ ▓███ ▒█▓ ███▀ ▓████████▓ █░ ░█████▒▓███▀
█▒ ░▓█▓ ▒█████▓█▓ ▓██▓ ████ ░▓▓█████ ▓██ ▒███▒▓████▀
█████████████▓▓███▒ ░░ ███░ ██▒ ████████▓█████▓░▒▓▒▒▓▓ ▀█████▀
▀███▓▒▒▒▒▓████░ █ ░▒▒▒░ ▒████ ████▓▓▓▓▓▓▓▓▓▓▓█▓████████▒ ██▀

Options: Reply | Quote | Up ^


#2 Re: Cannot save OEM characters

Posted by: Freeman | Date: 11/12/2014 09:38 | IP: IP Logged

Jan, what about this bug? It still presents in the latest 2517 build.

Options: Reply | Quote | Up ^


#3 Re: Cannot save OEM characters

Posted by: pspad | Date: 11/12/2014 11:09 | IP: IP Logged

Hello

Sorry, I didn't notice this topic. Maybe due to your semigraphic spam filtr deleted it.
PSpad uses system conversion from unicode to OEM. I need to make some tests. If you have any similar file, send it to support file please.

Options: Reply | Quote | Up ^


#4 Re: Cannot save OEM characters

Posted by: Freeman | Date: 11/15/2014 18:46 | IP: IP Logged

I previously wrote about CharToOem/OemToChar functions, which replace pseudographics with similar characters. You fixed only reading of OEM files, but saving remains broken. Now PSPad can read file, but cannot save it unbroken being edited.

Please fix it using WideCharToMultiByte instead of CharToOem.

Options: Reply | Quote | Up ^


#5 Re: Cannot save OEM characters

Posted by: Freeman | Date: 03/21/2015 20:57 | IP: IP Logged

Bump! smiling smiley

Options: Reply | Quote | Up ^


#6 Re: Cannot save OEM characters

Posted by: pspad | Date: 03/21/2015 21:22 | IP: IP Logged

Too much reports but too little time...
I will take a look on this problem. You must remind me from time to time winking smiley

Options: Reply | Quote | Up ^


#7 Re: Cannot save OEM characters

Posted by: pspad | Date: 03/24/2015 07:43 | IP: IP Logged

Fixed. I tested save and load.
I replaced all ANSI code page hanedling using WideCharToMultiByte()

Next step is add support for full range of code pages supported by system.

Options: Reply | Quote | Up ^


#8 Re: Cannot save OEM characters

Posted by: Freeman | Date: 03/24/2015 20:56 | IP: IP Logged

pspad:
I replaced all ANSI code page hanedling using WideCharToMultiByte()

Great! Wait for next build.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2018 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR