Re: Windows env-Bug?
- From: David Gravereaux <davygrvy@xxxxxxxxx>
- Date: Sun, 22 Jul 2007 13:00:32 -0700
Gerhard Reithofer wrote:
Nevertheless the TCL behaviour is IMHO a bug. Should I report a bug to
Sourceforge or does someone already feel responsible to work on that?
Forcing a re-ask of the environment for any access to the array would hurt
performance. Maybe a special behavior regarding setting any variable to ""
implies a delete (all platforms?), but the environment handling code
doesn't have platform specific code to it.
If you want to point a finger, point it at libc's setenv() that Tcl uses.
Yes, it's true that Tcl's behavior is not consistent on windows, but that
is the behavior on that platform. What about the next person who wonders
why Tcl can't set an envvar to empty (do we use the no-break space char to
imply empty?), then comes another person who wonders why their DLL changing
an envvar doesn't cause Tcl to fire trace on it or even show it be the same.
^- hint: The real environment is not sync'd to libc's cache of it.
In a way, this is like exit codes. Win apps have a 32-bit exit code. Tcl
only does 7-bit. Do you raise Tcl's size or truncate it to fit? Well, in
our case, both are happening and neither is fully right.
Patch it if you can, but you'll be staring at best a compromise that might
not address each side effectively.
--
"MOM, CAN I SET FIRE TO MY BED MATTRESS?" "No, Calvin." "CAN I RIDE MY
TRICYCLE ON THE ROOF?" "No, Calvin." "Then can I have a cookie?" "No, Calvin."
("She's on to me.")
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: Windows env-Bug?
- From: Donal K. Fellows
- Re: Windows env-Bug?
- From: Gerhard Reithofer
- Re: Windows env-Bug?
- References:
- Windows env-Bug?
- From: Gerhard Reithofer
- Re: Windows env-Bug?
- From: Torsten Edler
- Re: Windows env-Bug?
- From: Helmut Giese
- Re: Windows env-Bug?
- From: Torsten Edler
- Re: Windows env-Bug?
- From: Gerhard Reithofer
- Windows env-Bug?
- Prev by Date: Re: Windows env-Bug?
- Next by Date: Re: character pickers and interprocess communication
- Previous by thread: Re: Windows env-Bug?
- Next by thread: Re: Windows env-Bug?
- Index(es):
Relevant Pages
|