[Github-comments] [geany/geany] Files with long paths don’t work correctly on Windows (#1534)

elextr notifications at xxxxx
Thu Jul 6 07:36:30 UTC 2017


Don't know if its relevant, but tagmanager `get_path_max()` which is used in `get_real_path()` is wrong, it checks a compile time symbol `PATH_MAX` and then uses the value on an unknown run time system [see](https://github.com/geany/geany/blob/35a5d457f48c92ecb71b5a2ecf7d718701d5ef63/src/tagmanager/tm_source_file.c#L75)

At the very least it should use pathconf() all the time (does it work on windows?) but IIUC it gives a value "unsuitable for allocating memory" (ie very high, eg SIZE_MAX) on some systems.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/issues/1534#issuecomment-313320002
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20170706/bbafd0d6/attachment.html>


More information about the Github-comments mailing list