cygwin-src-20000125: patch to not convert cmdline to OEM

Reinhard Nissl rnissl@gmx.de
Sun Feb 13 09:01:00 GMT 2000


Hi,

the attached patch makes cygwin1.dll only convert the cmdline to OEM when the
environment variable CYGWIN_CMD_LINE_MODE is not set to ANSI. If the variable
doesn't exist or is set to anything else then ANSI, the library behaves as it
did before applying the patch.

In the case ANSI is set, any conversions from char to OEM or reverse are
skipped or replaced by a neutral function. A call to SetFileApisToANSI() is
done to handle the ANSI filenames correctly.

I developed this patch while porting sms_client to the CYGWIN environment to
be able to send SMS messages that contain "Umlauts", as the programme expects
them to be coded according to the ANSI code page. 

Bye.
--
Dipl.-Inform. (FH) Reinhard Nissl
mailto:rnissl@gmx.de
cygwin-ansi.patch.gz

-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygwin-ansi.patch.gz
Type: application/x-gzip
Size: 1166 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-developers/attachments/20000213/3f278010/attachment.bin>


More information about the Cygwin-developers mailing list