DiscussionsIssue archiveOCCT:Application Framework

Archived issue #0023071

Comparison of file extension is case sensitive

CommunityOCCT:Application Frameworkclosed3 public notes

Search issues

Description

If you try to save a file with a file extension in capital letters
like testcase.XML the file becomes saved as testcase.XML.xml because the check if the file extension is already in the name is done case sensitiv in the FWOSDriver_Driver::SetName method.
For the platform WNT this comparison should be done regardless of the case of the filename because windows is not case sensitive.

Steps to reproduce

Try to save a file testcase.XML and you will see the problem.

Additional information

A modified Attachment 2 (CXX) file is attached. It makes a temporary copy of the filename and the extensions and makes both lowercase for comparison. For other platforms nothing changes.

Public activity

3 archived notes

Participants are labeled by their role within this record.

01Commenter 1
Fixed in branch CR23071. It makes a temporary copy of the filename and its extension and converts both to lowercase for comparison.
Review it, please.
02Commenter 1
Reviewed!
03Commenter 3
Dear Commenter 2,
Workbench KAS:dev:mkv-23071-occt was created from git branch CR23071
(and mkv-23071-products from svn trunk) and compiled on Linux platform.

Test case for this bug is chl/934/Z8. It is OK.

There are not regressions in mkv-23071-products regarding to KAS:dev:products-20120406-opt
There are not improvements in mkv-23071-products regarding to KAS:dev:products-20120406-opt

See results in /QADisk/occttests/results/KAS/dev/mkv-23071-products_12042012/lin
See reference results in /QADisk/occttests/results/KAS/dev/products-20120406-opt_07042012/lin
See test cases in /QADisk/occttests/tests/ED
N.B. In order to launch testing case you can make use the following instructions
http://doc/doku.php?id=occt:certification