Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#978 closed defect (fixed)

native-translated-namestring merges with *default-pathname-defaults*

Reported by: fare Owned by:
Priority: normal Milestone:
Component: Runtime (threads, GC) Version: 1.8
Keywords: ITA Cc:


The manual doesn't say it does, but native-translated-namestring merges its argument with *default-pathname-defaults*, which does nothing when the default value of #p"" is used, but can yield interesting results in other cases. This behavior is not mentioned in the manual:

Personally, I'd consider that a bug, for merging is not what I'd expect from this function. However, maybe you have a different idea and this behavior is what you desire - in which case I consider that a bug in the documentation, for that is very surprising (to me at least).

My workaround is to bind *default-pathname-defaults* to #p"" around my call to native-translated-namestring.

Change History (4)

comment:1 Changed 8 years ago by gz

  • Keywords ITA added

comment:2 Changed 8 years ago by fare

This may or may not be affected by the [15330] fix to related ticket:953

comment:3 Changed 8 years ago by gz

  • Resolution set to fixed
  • Status changed from new to closed

(In [15744]) Don't merge with *default-pathname-defaults* in native-translated-namestring.

comment:4 Changed 8 years ago by gb

I don't think that the old behavior was desirable, but it's been present in MCL and CCL for a long time and I wouldn't be surprised if there was code out there that implicitly or explicitly depends on that old behavior. (If there is, that doesn't necessarily argue against the change but it may argue in favor of publicizing the change a bit more.)

Note: See TracTickets for help on using tickets.