Skip to content

Commit a84ae96

Browse files
authored
[CORE] Make an additional conversion from std::string to std::wstring (#29058)
Make an additional conversion from std::string to std::wstring at uv::util::to_file_path function when OPENVINO_ENABLE_UNICODE_PATH_SUPPORT was set Tickets: [162461](https://jira.devtools.intel.com/browse/CVS-162461) [146659](https://jira.devtools.intel.com/browse/CVS-146659)
1 parent b47c607 commit a84ae96

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/common/util/include/openvino/util/file_util.hpp

+4
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,11 @@ inline std::string from_file_path(const ov::util::Path& path) {
239239

240240
// TODO: remove this function after all calls use Path
241241
inline FilePath to_file_path(const ov::util::Path& path) {
242+
#if defined(_WIN32) && defined(OPENVINO_ENABLE_UNICODE_PATH_SUPPORT)
243+
return ov::util::string_to_wstring(path.string());
244+
#else
242245
return path.native();
246+
#endif
243247
}
244248

245249
#ifdef OPENVINO_ENABLE_UNICODE_PATH_SUPPORT

0 commit comments

Comments
 (0)