MantisBT
Mantis Bug Tracker Workflow

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0025682Community[OCCT] OCCT:Application Frameworkpublic2015-01-06 05:262020-10-30 17:44
ReporterVico Liang 
Assigned ToVico Liang 
PrioritylowSeverityminor 
StatusfeedbackResolutionopen 
PlatformWindowsOSVC++ 2013OS Version64 bit
Product Version[OCCT] 6.3.1 
Target Version[OCCT] 7.6.0*Fixed in Version 
Summary0025682: Application Framework - TObj_Model::GetModelName() should store in document in unicode mode instead of ascii mode
DescriptionThese places are affected:
TObj_Assistant::FindModel(const Standard_CString theName);
BinTObjDrivers_ReferenceDriver
XmlTObjDrivers_ReferenceDriver
TagsNo tags attached.
Test case number
Attached Filescxx file icon BinTObjDrivers_ReferenceDriver.cxx (5,068 bytes) 2015-01-06 07:00
cxx file icon XmlTObjDrivers_ReferenceDriver.cxx (5,387 bytes) 2015-01-06 07:01
? file icon TObj_Assistant.hxx (3,520 bytes) 2015-01-06 07:01
cxx file icon TObj_Assistant.cxx (6,688 bytes) 2015-01-06 07:01
? file icon XmlObjMgt.hxx (3,691 bytes) 2015-01-06 07:01
cxx file icon XmlObjMgt.cxx (14,592 bytes) 2015-01-06 07:02

- Relationships
related to 0025534closedbugmaster Community TObj_Application unicode path issue. 
related to 0026749newabv Community TObj_Assistant::FindModel fails to find model with unicode name. 
related to 0025683assignedvro Community Application Framework - No entrance to construct a LDOMBasicString from TCollection_ExtendedString 
child of 0022484closedbugmaster Open CASCADE UNICODE characters support. 

-  Notes
(0035919)
Vico Liang (developer)
2015-01-06 06:25

A new method can be added to fix the unicode model name issue.
Handle(TObj_Model) TObj_Assistant::FindModel(const TCollection_ExtendedString& theName)
{
    Standard_Integer i = getModels().Length();
    Handle(TObj_Model) aModel;
    for (; i > 0; i--)
    {
        aModel = Handle(TObj_Model)::DownCast(getModels().Value(i));
        if (theName == aModel->GetModelName()->String())
            break;
    }
    if (i == 0)
        aModel.Nullify();

    return aModel;
}
(0035920)
Vico Liang (developer)
2015-01-06 07:02

The fix code are uploaded please have a review.
(0037254)
szy (manager)
2015-02-09 19:00

Dear Vico,
I would suggested you to make the contribution (of source files) via the Collaborative portal (using OCCT Git) - http://dev.opencascade.org/index.php?q=home/get_involved. [^]
As you probably know the website dedicated to contributors is available now: http://dev.opencascade.org. [^]
It would allow as 1) sped-up the process as 2) track all processing history of the issue in frames of the current bug.

SZY
(0096321)
abv (manager)
2020-10-28 07:26

Hello Vico, this issue seem to be the same as 0026749 and should be resolved by patch for the latter, can you please confirm this?
(0096412)
Vico Liang (developer)
2020-10-30 17:44

please close this.

- Issue History
Date Modified Username Field Change
2015-01-06 05:26 Vico Liang New Issue
2015-01-06 05:26 Vico Liang Assigned To => szy
2015-01-06 06:25 Vico Liang Note Added: 0035919
2015-01-06 07:00 Vico Liang File Added: BinTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01 Vico Liang File Added: XmlTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01 Vico Liang File Added: TObj_Assistant.hxx
2015-01-06 07:01 Vico Liang File Added: TObj_Assistant.cxx
2015-01-06 07:01 Vico Liang File Added: XmlObjMgt.hxx
2015-01-06 07:02 Vico Liang File Added: XmlObjMgt.cxx
2015-01-06 07:02 Vico Liang Note Added: 0035920
2015-02-09 19:00 szy Note Added: 0037254
2015-03-05 11:44 szy Priority normal => low
2015-03-05 11:44 szy Target Version 6.9.0 => 7.1.0
2016-02-17 18:17 szy Assigned To szy => mpv
2016-10-25 16:05 mpv Target Version 7.1.0 => 7.2.0
2017-05-25 15:20 mpv Target Version 7.2.0 => Unscheduled
2020-10-14 12:06 kgv Relationship added child of 0022484
2020-10-14 12:12 kgv Product Version => 6.3.1
2020-10-14 12:12 kgv Target Version Unscheduled => 7.6.0*
2020-10-14 12:12 kgv Summary TObj_Model::GetModelName() should store in document in unicode mode instead of ascii mode. => Application Framework - TObj_Model::GetModelName() should store in document in unicode mode instead of ascii mode
2020-10-14 12:12 kgv Relationship added related to 0025534
2020-10-25 21:08 abv Relationship added related to 0026749
2020-10-25 21:09 abv Relationship added related to 0025683
2020-10-28 07:26 abv Note Added: 0096321
2020-10-28 07:26 abv Assigned To mpv => Vico Liang
2020-10-28 07:26 abv Status new => feedback
2020-10-30 17:44 Vico Liang Note Added: 0096412


Copyright © 2000 - 2020 MantisBT Team
Powered by Mantis Bugtracker