MantisBT - Open CASCADE
View Issue Details
0026380Open CASCADE[OCCT] OCCT:Foundation Classespublic2015-06-29 20:132016-12-09 16:30
kgv 
bugmaster 
normalminor 
closedfixed 
[OCCT] 6.9.0 
[OCCT] 7.1.0[OCCT] 7.1.0 
0026380: OSD_SharedLibrary - handle UTF-8 file paths
Class implementation does not use LoadLibraryExW or LoadLibraryW, thus is not Unicode-compatible:
 242 Standard_Boolean OSD_SharedLibrary :: DlOpen ( const OSD_LoadMode /*Mode*/ ) {
 243 
 244  Standard_Boolean retVal = Standard_True;
 245 
 246  if (  (  myHandle ) == NULL &&
 247        (  myHandle = ( HINSTANCE )LoadLibraryEx (
 248                                    myName, NULL, LOAD_WITH_ALTERED_SEARCH_PATH
 249                                   )  ) == NULL

The class also should be revised to follow coding rules (e.g. eliminate unsafe memory management, uninitialized myName field on non-Windows and probably other issues).
No tags attached.
related to 0025302closed abv Incorrect locale and unicode support in Draw console 
related to 0027838closed kgv Foundation Classes - support wchar_t* input within TCollection_AsciiString and TCollection_ExtendedString 
child of 0022484closed bugmaster UNICODE characters support. 
Issue History
2015-06-29 20:13kgvNew Issue
2015-06-29 20:13kgvAssigned To => abv
2015-06-29 20:14kgvRelationship addedchild of 0022484
2015-06-29 20:15kgvSummaryOSD_SharedLibrary should handle UTF-8 file paths => OSD_SharedLibrary - handle UTF-8 file paths
2015-06-29 20:15kgvRelationship addedrelated to 0025302
2015-12-14 22:39abvTarget Version7.0.0 => 7.1.0
2016-09-04 14:35kgvRelationship addedrelated to 0027838
2016-09-16 09:44kgvNote Added: 0057842
2016-09-16 09:44kgvAssigned Toabv => bugmaster
2016-09-16 09:44kgvStatusnew => feedback
2016-09-16 09:44kgvResolutionopen => fixed
2016-09-16 09:44kgvFixed in Version => 7.1.0
2016-09-16 12:29bugmasterStatusfeedback => tested
2016-09-16 12:29bugmasterStatustested => verified
2016-12-09 16:30aivStatusverified => closed

Notes
(0057842)
kgv   
2016-09-16 09:44   
Please switch bug to VERIFIED - fix has been included within patch for 0027838.