MantisBT - Community
View Issue Details
0025682Community[OCCT] OCCT:Application Frameworkpublic2015-01-06 05:262020-11-11 22:03
Vico Liang 
abv 
lowminor 
feedbackopen 
WindowsVC++ 201364 bit
[OCCT] 6.3.1 
[OCCT] 7.6.0* 
0025682: Application Framework - TObj_Model::GetModelName() should store in document in unicode mode instead of ascii mode
These places are affected:
TObj_Assistant::FindModel(const Standard_CString theName);
BinTObjDrivers_ReferenceDriver
XmlTObjDrivers_ReferenceDriver
No tags attached.
related to 0025534closed bugmaster Community TObj_Application unicode path issue. 
related to 0026749closed abv Community TObj_Assistant::FindModel fails to find model with unicode name. 
related to 0025683assigned vro Community Application Framework - No entrance to construct a LDOMBasicString from TCollection_ExtendedString 
child of 0022484closed bugmaster Open CASCADE UNICODE characters support. 
cxx BinTObjDrivers_ReferenceDriver.cxx (5,068) 2015-01-06 07:00
https://tracker.dev.opencascade.org/
cxx XmlTObjDrivers_ReferenceDriver.cxx (5,387) 2015-01-06 07:01
https://tracker.dev.opencascade.org/
? TObj_Assistant.hxx (3,520) 2015-01-06 07:01
https://tracker.dev.opencascade.org/
cxx TObj_Assistant.cxx (6,688) 2015-01-06 07:01
https://tracker.dev.opencascade.org/
? XmlObjMgt.hxx (3,691) 2015-01-06 07:01
https://tracker.dev.opencascade.org/
cxx XmlObjMgt.cxx (14,592) 2015-01-06 07:02
https://tracker.dev.opencascade.org/
Issue History
2015-01-06 05:26Vico LiangNew Issue
2015-01-06 05:26Vico LiangAssigned To => szy
2015-01-06 06:25Vico LiangNote Added: 0035919
2015-01-06 07:00Vico LiangFile Added: BinTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01Vico LiangFile Added: XmlTObjDrivers_ReferenceDriver.cxx
2015-01-06 07:01Vico LiangFile Added: TObj_Assistant.hxx
2015-01-06 07:01Vico LiangFile Added: TObj_Assistant.cxx
2015-01-06 07:01Vico LiangFile Added: XmlObjMgt.hxx
2015-01-06 07:02Vico LiangFile Added: XmlObjMgt.cxx
2015-01-06 07:02Vico LiangNote Added: 0035920
2015-02-09 19:00szyNote Added: 0037254
2015-03-05 11:44szyPrioritynormal => low
2015-03-05 11:44szyTarget Version6.9.0 => 7.1.0
2016-02-17 18:17szyAssigned Toszy => mpv
2016-10-25 16:05mpvTarget Version7.1.0 => 7.2.0
2017-05-25 15:20mpvTarget Version7.2.0 => Unscheduled
2020-10-14 12:06kgvRelationship addedchild of 0022484
2020-10-14 12:12kgvProduct Version => 6.3.1
2020-10-14 12:12kgvTarget VersionUnscheduled => 7.6.0*
2020-10-14 12:12kgvSummaryTObj_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:12kgvRelationship addedrelated to 0025534
2020-10-25 21:08abvRelationship addedrelated to 0026749
2020-10-25 21:09abvRelationship addedrelated to 0025683
2020-10-28 07:26abvNote Added: 0096321
2020-10-28 07:26abvAssigned Tompv => Vico Liang
2020-10-28 07:26abvStatusnew => feedback
2020-10-30 17:44Vico LiangNote Added: 0096412
2020-11-11 22:02abvAssigned ToVico Liang => abv
2020-11-11 22:03abvNote Added: 0096672

Notes
(0035919)
Vico Liang   
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   
2015-01-06 07:02   
The fix code are uploaded please have a review.
(0037254)
szy   
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   
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   
2020-10-30 17:44   
please close this.
(0096672)
abv   
2020-11-11 22:03   
We do not have a test for references between TObj documents, to be added