Menu

#14 Recognize both slash AND backslash as directory separators

closed-accepted
None
2015-05-12
2015-05-08
No

hexcomp assumes that the directory separator is always '/', while this might prove untrue on non-linux platforms. Some platforms use '/', other use '\', and yet other handle both.

The attached patch makes hexcomp recognize both forward- and backslash as a directory separator.

Note: I was also thinking about making the directory separator a compile-time definition, but such approach would fail platforms that accept both '/' and '\'.

1 Attachments

Discussion

  • Mateusz Viste

    Mateusz Viste - 2015-05-12

    applied to upstream.

     
  • Mateusz Viste

    Mateusz Viste - 2015-05-12
    • status: open --> closed-accepted
    • assigned_to: Mateusz Viste
     

Log in to post a comment.