java/9677: File not found if spaces in file name
Wed Feb 12 20:26:00 GMT 2003

>Number:         9677
>Category:       java
>Synopsis:       File not found if spaces in file name
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 12 20:26:01 UTC 2003
>Originator:     Steve Paavola
>Release:        3.2.1
PowerPC Linux 2.4.19-4a
The eclipse sources use directory names with spaces in them. If gcj is called with quotes around the file names, gcj determines that the files exist and calls jc1. The quotes get lost going to jc1, and jc1 complains that it can't open the source files.

$ cd /tmp
$ mkdir 'foo bar'
$ touch 'foo bar/'
$ gcj -v -save-temps -c '/tmp/foo bar/'
Reading specs from /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/specs
Reading specs from /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/../../../libgcj.spec
rename spec lib to liborig
Configured with: ../gcc-3.2.1/configure 
Thread model: posix
gcc version 3.2.1
 /usr/local/lib/gcc-lib/powerpc-unknown-linux-gnu/3.2.1/jc1 /tmp/foo bar/ -fhash-synchronization -fuse-divide-subroutine -fuse-boehm-gc -fnon-call-exceptions -fkeep-inline-functions -quiet -dumpbase -g1 -version -o foo.s
GNU Java version 3.2.1 (powerpc-unknown-linux-gnu)
        compiled by GNU C version 2.95.4 20010319 (prerelease/franzo/20011204).
Class path starts here:
    /usr/local/share/java/libgcj-3.2.1.jar/ (system) (zip)
jc1: No such file or directory: can't open /tmp/foo
See instructions in Description:


More information about the Gcc-bugs mailing list