ffi/util: Deal with stupid GNU basename quirks#1825
Conversation
basename("/foo/") yielding "" is very much not what we signed up for...
|
There is thankfully no such madness happening with |
|
See koreader/koreader#12038 (comment) for more details, because I had completely forgotten we'd switched to (attempt to) prefer the GNU imp, because (ironically) Android... |
|
Ah, OK xD You beat me to it, lol |
Specifically, the only guarantee we have on bionic is that the public symbol will be named Whether the Android implementation leans more towards a POSIX or GNU behavior is irrelevant (for the record, it leans towards a sane, POSIX behavior, while also not modifying its input ;p). |
We basically don't know what we're getting, so, we need to deal with all the potential quirks.
basename("/foo/") yielding "" is very much not what we signed up for...
This change is