Community
Participate
Working Groups
A search on toOSString on TS code show 80+ occurrences. This is potentially leading to problems when running on PC vs Mac. toPortableString should be used, in conjunction with the IFile.Separator to ensure consistency.
I'm not sure if I agree with this change. According to the APIs, toPortableString doesn't have a specified format. Yet there are instances in TS code where we call toOSString and further modify the returned string. We can't do that with toPortableString, since the format is unspecified. If there are specific instances where usage of this API causes issues between PC/Mac, please reopen this defect and provide more details so we can further investigate.