Whatever. For now, I'm just calling free() if Parrot_getenv() tells me
to. Which it probably never will.
> Anyone mind if I commit this?
The patch is fine.
> ... One thing I'm not sure of, though -- I
> try to behave myself and use Parrot_getenv rather than a plain
> getenv(), but I'm not convinced the API is complete -- Parrot_getenv
> saves back a boolean saying whether to free the returned string or
> not, but what should I call to free it?
It's for Win32. config/gen/platform/win32/env.c uses
C<mem_sys_allocate>, so it should be C<mem_sys_free>.
leo
Thanks, patch applied. I went to add documentation on Parrot_getenv,
but found that it was already there in platform_interface.h. Doh!
> + /* DEFAULT_ICU_DATA_DIR is configured at build time, or it may be
> + set through the $ICU_DATA_DIR environment variable. Need a way
> + to specify this via the command line as well. */
> + data_dir = Parrot_getenv("ICU_DATA_DIR", &free_data_dir);
Is ICU_DATA_DIR something the ICU folks define? Or something we define?
And if the latter, shouldn't it be called PARROT_ICU_DATA_DIR?
Nicholas Clark
Fair enough. The rename has been committed.