View Issue Details

IDProjectCategoryView StatusLast Update
0025682CommunityOCCT:Application Frameworkpublic2023-08-07 15:52
ReporterVico Liang Assigned Tobugmaster  
PrioritylowSeverityminor 
Status closedResolutionfixed 
PlatformWindowsOSVC++ 2013 
Product Version6.3.1 
Target VersionUnscheduled 
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 Files

  • BinTObjDrivers_ReferenceDriver.cxx (5,068 bytes)
  • XmlTObjDrivers_ReferenceDriver.cxx (5,387 bytes)
  • TObj_Assistant.hxx (3,520 bytes)
  • TObj_Assistant.cxx (6,688 bytes)
  • XmlObjMgt.hxx (3,691 bytes)
  • XmlObjMgt.cxx (14,592 bytes)

Relationships

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

Activities

Vico Liang

2015-01-06 06:25

developer   ~0035919

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;
}

Vico Liang

2015-01-06 07:00

developer  

BinTObjDrivers_ReferenceDriver.cxx (5,068 bytes)

Vico Liang

2015-01-06 07:01

developer  

XmlTObjDrivers_ReferenceDriver.cxx (5,387 bytes)

Vico Liang

2015-01-06 07:01

developer  

TObj_Assistant.hxx (3,520 bytes)

Vico Liang

2015-01-06 07:01

developer  

TObj_Assistant.cxx (6,688 bytes)

Vico Liang

2015-01-06 07:01

developer  

XmlObjMgt.hxx (3,691 bytes)

Vico Liang

2015-01-06 07:02

developer  

XmlObjMgt.cxx (14,592 bytes)

Vico Liang

2015-01-06 07:02

developer   ~0035920

The fix code are uploaded please have a review.

szy

2015-02-09 19:00

manager   ~0037254

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

abv

2020-10-28 07:26

manager   ~0096321

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?

Vico Liang

2020-10-30 17:44

developer   ~0096412

please close this.

abv

2020-11-11 22:03

manager   ~0096672

We do not have a test for references between TObj documents, to be added

dpasukhi

2023-08-02 02:06

administrator   ~0113834

Dear @bugmaster
please close the issue

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
2020-11-11 22:02 abv Assigned To Vico Liang => abv
2020-11-11 22:03 abv Note Added: 0096672
2021-11-01 18:14 szy Target Version 7.6.0 => 7.7.0
2022-10-24 10:39 szy Target Version 7.7.0 => 7.8.0
2023-08-02 02:06 dpasukhi Assigned To abv => bugmaster
2023-08-02 02:06 dpasukhi Note Added: 0113834
2023-08-02 02:06 dpasukhi Target Version 7.8.0 => Unscheduled
2023-08-07 15:52 vglukhik Status feedback => closed
2023-08-07 15:52 vglukhik Resolution open => fixed