Re: [AD] msvchelp

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Milan Mimica napsal(a):
There is a bug in msvchelp.exe program that converts long paths to short format. It cannot find the supplied "MSVCDir" env variable because all variables on windows are caps insensitive (probably just converted to all caps internally) and getenv() is caps sensitive. Attached patch fixes the problem by converting the supplied env variable to all caps.

No. getenv() is case insensitive on Windows. try this:

#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[])
{
  printf("%s\n", getenv("PATH"));
  printf("%s\n", getenv("path"));
  printf("%s\n", getenv("PaTh"));
  printf("%s\n", getenv("paTH"));
  system("PAUSE");
  return 0;
}

Your patch makes no sense.

--
Regards,
    Michal

ICQ# 175762750




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/