[gccsdk] [Bug 229] New: GCC 4.1.2 Release 2 Dev: glob() ignores files with hardspace.

bugzilla-daemon at riscos.info bugzilla-daemon at riscos.info
Thu Apr 26 08:10:26 PDT 2012


http://www.riscos.info/bugzilla3/show_bug.cgi?id=229

           Summary: GCC 4.1.2 Release 2 Dev: glob() ignores files with
                    hardspace.
           Product: GCC/GCCSDK
           Version: other
          Platform: Other
        OS/Version: RISC OS
            Status: NEW
          Severity: normal
          Priority: P1
         Component: C compiler
        AssignedTo: John.Tytgat at aaug.net
        ReportedBy: duncan_moore at ntlworld.com
   Estimated Hours: 0.0


GCCSDK GCC 4.1.2 Release 2 Development
VRPC RISC OS 4.39

This program doesn't list filenames in cwd with a hardspace:

#include <stdio.h>
#include <glob.h>
int main(void) {
  glob_t file_list;
  int flags=0;
  int err=glob("*",flags,NULL,&file_list);
  printf("err                 = %i\n",err);
  printf("file_list->gl_pathc = %lu\n",file_list.gl_pathc);
  for (size_t i=0;i<file_list.gl_pathc;++i) {
    printf("%lu %s\n",i,file_list.gl_pathv[i]);
  }
  return 0;
}

-- 
Configure bugmail: http://www.riscos.info/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.




More information about the gcc mailing list