[wp-trac] [WordPress Trac] #33265: Normalize drive letter in paths

WordPress Trac noreply at wordpress.org
Thu Aug 20 03:10:51 UTC 2015


#33265: Normalize drive letter in paths
-------------------------+------------------
 Reporter:  Rarst        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.4
Component:  General      |     Version:  4.3
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:
-------------------------+------------------
Changes (by dd32):

 * keywords:   => 2nd-opinion
 * milestone:  Awaiting Review => 4.4


Comment:

 I'm of two minds here
  - All paths are case-insensitive on windows systems, only upper-casing
 the drive letter seems like altering 1 character of many
  - Drive letters are uppercase by convention, paths are usually lower-case
 (unless a system path), leaving the drive letter as the only character
 that needs upper-casing.

 Due to the PHP constants always returning uppercase drive letters, I'm
 inclined to go that way through.

 [attachment:33265.diff] implements that, still not 100% sure which way
 though.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33265#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list