Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2003-08

Problem - ocrt.pp & cp1251

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Ivan Petrov

Hello!

I use ocrt unit since a couple of moths and I found it very useful.

The problem occures when I use nEdit function for string type variable. In the codepage cp1251 (microsoft :-((( ) the symbol with code 255 ($FF) is a cyrillic letter that sounds like "ya".
When I press its key, nothing happens, the function rejects the input.

I walked by the source and I saw that the symbol #255 is used to mark some internal events.

This codepage is used in Bulgaria. I don't know the historical reason why this codepage is chosen in my country, but I have to cope with this.

I have no that much time to rewrite that huge function... Any suggestions?
TIA!
--------------------
Ivan Petrov