[bt-devel] Windows Module Install bug

Peter von Kaehne refdoc at gmx.net
Wed Apr 22 00:16:35 MST 2009


Matthew Talbert wrote:

> (There are two problems with getenv; the first is that if the
> environment variable contains symbols that aren't representable in the
> encoding used by the C runtime, it will not get the correct result.
> The second is that environment variables on Windows can be nested, so
> you should either use the Windows methods or carefully look at the
> return values to make sure that they don't contain variables
> themselves.)

Not being a programmer and all, but I would be extremely surprised if CW
is the first project to run into these two problems. I am sure there
must be some inbuilt  methods (or even some settings/additional
attributes to getEnv) to correct this - rather than having to code
specifically to correct encoding and expand variables contained in
variables.

No?

Peter




More information about the bt-devel mailing list