bugGNU Octave - Bugs: bug #58148, canonicalize_file_name does not...

 
 

bug #58148: canonicalize_file_name does not return correctly capitalized path on Windows

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Thu 09 Apr 2020 04:17:46 PM UTC
   
 
Category:  Interpreter Severity:  2 - Minor
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 17 Apr 2020 06:37:26 AM UTC, comment #2: 

Cross-build from Apr. 15 (Octave-7.0.0):

>> canonicalize_file_name ('c:/Program FILES (X86)\moziLla maintenance service/updater.INI')
ans = C:\Program Files (x86)\Mozilla Maintenance Service\updater.ini


and some other examples, with or w/o drive letter, work fine too.

Closing report.

Philip Nienhuis <philipnienhuis>
Group Member
Sat 11 Apr 2020 06:49:10 PM UTC, comment #1: 

I pushed the quick fix here:
http://hg.savannah.gnu.org/hgweb/octave/rev/9a1b6400c706

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Thu 09 Apr 2020 04:17:46 PM UTC, original submission:  

"canonicalize_file_name" does not return the correct capitalization of parts of the path that are longer than 8 characters.

E.g. if there is the path "C:\ProgramData\Intel", canonicalize_file_name('c:\proGramdaTa\iNtEl') returns "C:\proGramdaTa\Intel".

Reading up on it, this might be an easy fix on partitions that store short file names. But it might be not worth the effort to fix this for partitions that don't store short file names...

Markus Mützel <mmuetzel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mmuetzel (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-04-17 philipnienhuis StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2020-04-11 mmuetzel StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code