Hmm, I have to admit that I don't understand what exactly you're talking about, because I have no idea what "OEM charset" is supposed to be.
Anyway, lets just say you have your sources in some strange, evil charset.
1. Do you think it will help if the editor alone understands your charset? If you don't translate them alltogether, the compiler will not be able to read your sources either, so it will be pretty useless.
2. Have you tried gnu recode? I have no clue about "OEM", but recode reads and writes just about everything that exists.
3. Have you considered writing a plugin that reads in all files from a project, runs the text through OEMToChar, and saves the text again? This would be a lot easier and more straightforward than modifying the editor and would solve the problem with the compiler, too.
Try this. No guarantees, whacked that together in ~10 minutes, but it should do.
This way can't help. It's "one way ticket".
This way can't help. It's "one way ticket".
Actually it is not one way. Just add another menu item "Char to OEM" and call the other function. This is 5 lines of code added.
#define wxSCI_CHARSET_OEM 255
Actually, I just found out that wxScintilla supports OEM natively. Don't know how to configure the charset (yet), but wxscintilla.h contains this:Code#define wxSCI_CHARSET_OEM 255
So it must be possible (and probably relatively easy, too) to edit whatever charset natively without converting anything.
I am waiting for the compile to finish atm, trying StyleSetCharacterSet . Though I don't know how it works... but will hopefully find out. This may be Do you mind posting one of your OEM encoded files so I can see the result?
Hmm... seems I am doing something wrong, StyleSetCharacterSet does not change anything, even if I call it for every style in a for loop. Will have to find some documentation and read, maybe that helps ;)