Regis wrote:
> It seems intended to be, but I'm not sure. I think it's a great feature
> when porting the windows depended code("\\" in path name) to linux, but
> there is potential problem, how to reference a file which name contians
> "\\" on linux? And this different may cause surprise when some
> applications depends on the behavior of RI.
>
> Any comments/suggestions?
I think we need to change to allow \ to be passed through as part of the
file name on Linux.
Regards,
Tim
> Regis Xu (JIRA) wrote:
>> [classlib][luni] - different behavior with RI when file path contains
>> "\\" in Linux
>> -----------------------------------------------------------------------------------
>>
>>
>> Key: HARMONY-5987
>> URL: https://issues.apache.org/jira/browse/HARMONY-5987
>> Project: Harmony
>> Issue Type: Bug
>> Components: Classlib
>> Affects Versions: 5.0M7
>> Reporter: Regis Xu
>> Fix For: 5.0M8
>>
>>
>> Consider the test:
>>
>> File file = new File("d1\\d2");
>> file.mkdirs();
>>
>> RI create a directory named "d1\d2", while Harmony create two
>> directories "d1" and "d1/d2", seems RI doesn't covert windows file
>> separator char "\\" to system separator char on Linux, and
>> spec says nothing about it. I quickly navigate the source, found we
>> have a method fixSlashes in java.io.File, which convert "\\" or "/" to
>> system separator char, so it may be intended or a feature of harmony?
>>
>