Mail Archives: djgpp/1999/06/13/17:53:15.2
El día Sat, 12 Jun 1999 13:25:35 -0400, "Yogesh Sharma"
<SHARMAYOGESH AT prodigy DOT net> escribió:
>Below is the source for getenv.c. I am planning to change the following line
>:
> while (*ep && *np && *ep == *np && *np != '=')
>
>To
> while (*ep && *np && toupper(*ep) == toupper(*np) && *np != '=')
>
>Reason for changing this
>
>DOS is not a case sensitive OS, so why don't we convert the environment
>variable and search variable to upper case so that the users may not have
>any problem regarding the case.
It is COMMAND.COM the one that is case insensitive. When you set
environment variables from the command line, COMMAND.COM will
uppercase the variable name; so for the end user, it seems like if var
names were case insensitive, but they are not.
Regards,
GUILLE
----
Guillermo Rodriguez Garcia
XXguille AT XXiies DOT XXes (ya sabes :-)
- Raw text -