GNOME Bugzilla – Bug 667405
sourcescanner compares file paths as case sensitive strings
Last modified: 2015-02-07 17:00:57 UTC
The source scanner compares the file path of a symbol with known file paths to be scanned in a case sensitive manner by using simple strcmp on the file path string. On HFS+, paths are case insensitive by default (as well as on Windows I believe). In combination with python returning paths all in lower case (even if the path is in upper case, like /Users being returned as /users), the strcmp fails on OS X when comparing the paths. One quick fix would be to use g_ascii_strcasecmp on OS X in the particular function. A better fix however is to properly use GFile instead of comparing strings.
Created attachment 211645 [details] [review] Compare filenames using g_file_equal() Makes it work on case-sensitive file systems such as HFS+.
Attachment 211645 [details] pushed as 47d4e95 - Compare filenames using g_file_equal()
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]