Stephen J. Turnbull writes:
Charles G Waldman writes:
> Recent versions of gcc produce message like
>
> cd /home/cgw/Work/
> gcc -o inotify inotify.c
> inotify.c: In function a^\200\230actiona^\200\231:
> ...
Something screwy is going on here. I don't know where the "a^" is
going, and the \200\230 in UTF-8 translates to U+0018 aka ASCII 24
aka ^X.
Aha, I've managed to partially reproduce. I haven't figured out
entirely what's going on yet, but that's apparently not UTF-8; it's
bigendian UTF-16. Apparently the quotation marks are U+2018 and
U+2019 -- GCC seems to be very confused about what encoding it should
be using here (unless maybe all the 0x00 bytes in the UTF-16 encoding
of ASCII characters are just being ignored by your terminal or
something like that?) "a^" on the other hand corresponds to U+615E,
a CJK ideograph, which I wouldn't put it entirely past gcc to emit,
but seems unlikely.
Can you give use more information about your environment (a copy of
M-x describe-installation output might be enough)?
I tested on two different machines (gentoo linux, slightly different
setup, same version of xemacs, invoked with '-q') and saw that the
behavior differed. I tracked it down to the fact that one host has
LANG=en_US.utf8 set by default in the environment, while the other
host has no LANG set at all. Without LANG it works correctly, with
LANG set I get the mangled quotes. If I just compile at the shell,
the output looks OK, but when I try to copy/paste it here the quotes
get changed to ^X/^Y
(copy/paste from terminal window)
cgw@duality$ unset LANG
cgw@duality$ gcc -c test.c
test.c: In function 'main':
test.c:3: error: 'p' undeclared (first use in this function)
test.c:3: error: (Each undeclared identifier is reported only once
test.c:3: error: for each function it appears in.)
test.c:3: error: expected ';' before 'return'
cgw@duality$ LANG=en_US.utf8 gcc -c test.c
test.c: In function main:
test.c:3: error: p undeclared (first use in this function)
test.c:3: error: (Each undeclared identifier is reported only once
test.c:3: error: for each function it appears in.)
test.c:3: error: expected ; before return
Here's the output of M-x describe-installation:
uname -a: Linux duality 2.6.30-gentoo-r5 #3 SMP PREEMPT Mon Aug 24 13:18:18 CDT 2009 i686
Intel(R) Core(TM)2 CPU T7600 @ 2.33GHz GenuineIntel GNU/Linux
./configure '--build=i686-pc-linux-gnu' '--host=i686-pc-linux-gnu'
'--mandir=/usr/share/man' '--infodir=/usr/share/info'
'--datadir=/usr/share' '--sysconfdir=/etc'
'--localstatedir=/var/lib' '--with-widgets=athena'
'--with-dialogs=athena' '--with-menubars=lucid'
'--with-scrollbars=lucid' '--with-athena=xaw' '--with-tiff'
'--with-png' '--with-jpeg' '--with-xface'
'--with-xft=emacs,tabs,menubars,gauges' '--with-sound=native,alsa'
'--with-database=gdbm' '--with-optimization=yes' '--with-gif'
'--with-gpm' '--without-postgresql' '--without-ldap'
'--without-file-coding' '--without-pop' '--prefix=/usr'
'--with-ncurses' '--with-msw=no' '--with-mail-locking=flock'
'--with-site-lisp=yes' '--with-site-modules=yes' '--with-newgc'
'--enable-option-checking=no' '--with-last-packages=/usr/lib/xemacs'
'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu'
'CFLAGS=-march=native -O2 -fomit-frame-pointer -pipe -I/usr/include/gdbm'
'LDFLAGS=-Wl,-O1'
XEmacs 21.5-b29 "garbanzo" configured for `i686-pc-linux'.
Compilation Environment and Installation Defaults:
Source code location:
/var/tmp/portage/app-editors/xemacs-21.5.29-r2/work/xemacs-21.5.29
Installation prefix: /usr
Operating system description file: `s/linux.h'
Machine description file: `m/intel386.h'
Compiler version: i686-pc-linux-gnu-gcc (Gentoo 4.4.3-r2 p1.2) 4.4.3
- GCC specs file: specs.
- Compiler command: i686-pc-linux-gnu-gcc -Wall -Wno-switch -Wundef
-Wsign-compare -Wno-char-subscripts -Wpacked -Wunused-parameter -g -O3 -march=native -O2
-fomit-frame-pointer -pipe -I/usr/include/gdbm
libc version: 2.11.1
Relocating allocator for buffers: no
GNU version of malloc: yes
- Using Doug Lea's new malloc from the GNU C Library.
Window System:
Compiling in support for the X window system:
- X Windows headers location:
- X Windows libraries location:
- Handling WM_COMMAND properly.
- Using fontconfig to manage fonts.
- Compiling in support for Xft antialiased fonts (EXPERIMENTAL).
Compiling in support for the Athena widget set:
- Athena headers location: X11/Xaw
- Athena library to link: Xaw
Using Lucid menubars.
- Using Xft to render antialiased fonts in menubars.
WARNING: This feature will be replaced with a face.
Using Lucid scrollbars.
Using Athena dialog boxes.
Using Athena native widgets.
- Using Xft to render antialiased fonts in tab controls.
WARNING: This feature will be replaced with a face.
- Using Xft to render antialiased fonts in progress bars.
WARNING: This feature will be replaced with a face.
WARNING: This feature not yet implemented; setting ignored.
TTY:
Compiling in support for ncurses.
Compiling in support for GPM (General Purpose Mouse).
Images:
Compiling in support for GIF images (builtin).
Compiling in support for XPM images.
Compiling in support for PNG images.
Compiling in support for JPEG images.
Compiling in support for TIFF images.
Compiling in support for X-Face message headers.
Sound:
Compiling in support for sound (native).
Compiling in support for ALSA (Advanced Linux Sound Architecture).
Databases:
Compiling in support for Berkeley database.
Compiling in support for GNU DBM.
Internationalization:
Mail:
Compiling in support for "flock" mail spool file locking method.
Other Features:
Inhibiting IPv6 canonicalization at startup.
Compiling in support for dynamic shared object modules.
Using the new GC mark algorithms (KKCC).
WARNING: ---------------------------------------------------------
WARNING: The new algorithms are experimental. They are enabled by
WARNING: default for this release. Use `--disable-kkcc' to
WARNING: turn it off.
WARNING: ---------------------------------------------------------
Using the new incremental garbage collector and the new allocator.
Using POSIX sigaction() to install fault handler.
Using the new portable dumper.
Compiling in support for extra debugging code.
Compiling in support for runtime error checking.
WARNING: ---------------------------------------------------------
WARNING: XEmacs will run noticeably more slowly as a result.
WARNING: Error checking is on by default for XEmacs beta releases.
WARNING: ---------------------------------------------------------
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-beta