RE: National characters under Borland C++ 5.02 Windows/DOS

new topic     » topic index » view thread      » older message » newer message

I know that, Martin. The problem is that Borland C++ 5.02 automatically uses
an editor that runs Windows style, and when executing the recently compiled
program, it does it on a DOS Window. A solution would be to specify an ANSI
code page for DOS, but this has two problems:
1) The current page is 850 (Multilingual), and is the one used by most files
I have that were generated under DOS. So, if I change it for another one, my
old files will get screwed up for viewing.
2) Even if I wished to change this 850 code page for the ANSI one, I don't
know what its number is. Does somebody know it? If so, perhaps I could
devise a solution to alternate between these code pages.

All of this is not because I am actively using Borland C++ 5.02 nor even
C++, but because I am teaching this at a local University, and the students
have to use this compiler.

----- Original Message -----
From: Martin Stachon <martin.stachon at worldonline.cz>
To: EUforum <EUforum at topica.com>
Sent: Sunday, August 04, 2002 8:05 AM
Subject: Re: National characters under Borland C++ 5.02 Windows/DOS



DOS and Windows use different code pages. I guess your editor is for
Windows,
so it uses ANSI code page for Spanish, while DOS box uses OEM code page.
You need to convert between this two. (Eg. EditPad has OEM<->ANSI function,
also Windows API has some OEM<->ANSI functions) Also be sure to have DOS
codepage selected correctly, using lines

mode con codepage prepare=((852) C:\WINDOWS\COMMAND\ega.cpi)
mode con codepage select=852

in autoexec.bat (you need to replace 852 with codepage number for
Spanish)

If none of this helps, ask Igor smile

    Martin

----- Original Message -----
From: <rforno at tutopia.com>
To: "EUforum" <EUforum at topica.com>
Sent: Sunday, August 04, 2002 7:19 AM
Subject: National characters under Borland C++ 5.02 Windows/DOS

Dear Euphorians:
Of course this is an Off-topic question.
I am having problems with Borland C++ 5.02 because, when you specify a
character string in the editor, using national characters (in Spanish
áéíóúüñ etc.), it uses the Windows standard for them. However, when you
compile and execute such a program by means of the facilities that come with
the compiler (for example, the "lightning" button), it executes the program
under a DOS windows, and the national characters show as strange graphs.
Does someone know a way to avoid this problem?
TIA.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu