GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #11270

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Adriaan van Os
Subject: compiling-update
Date: 23 Jan 2005, 23:12:49

jan.ruzicka@comcast.net wrote:

> ----------------------------------------------------------------------- 
> -------
> TEST    fjf165a.pas:    ./fjf165a.cmp: line 40: unexpected EOF while  
> looking for matching `"'
> ./fjf165a.cmp: line 42: syntax error: unexpected end of file
> ----------------------------------------------------------------------- 
> -------
> Does anybody have any idea what may cause this?

I can reproduce it now on Mac OS X 10.3, it doesn't happen on Mac OS X  
10.2. I guess it has something to do with the redirection used in the  
fjf165a.cmp script, but this is really something for shell-script  
experts:

> #!/bin/sh
>
> # Try setting German locale (locally ;-)
> #
> # Which variables do we really need to set? (Probably not all of
> # these, but better be safe than sorry. ;-)
> #
> # The complicated redirecting is necessary on Solaris' shell which
> # otherwise would give messages "couldn't set locale correctly"
> # in the variable assignments that can't seem to be redirected
> # normally.
>
> exec 3>&2 2> /dev/null
> LC_ALL=de_DE; export LC_ALL
> LC_CTYPE=de_DE; export LC_CTYPE
> LANG=de_DE; export LANG
> exec 2>&3
>
> # Test if German locale actually works (i.e., whether the locale
> # database is installed on the system)
> cat << EOF > dummy.c
> #include <ctype.h>
> #include <locale.h>
> int main()
> {
>   setlocale (LC_ALL, "");
>   printf ("%c\n", toupper ((unsigned char) '‰'));
> }
> EOF
> if gcc dummy.c > /dev/null 2>&1 && [ -r "$A_OUT" ] && [ x"`./"$A_OUT"  
> 2> /dev/null`" = x"ƒ" ]; then
>   rm -f "$A_OUT" dummy.c
>   $1 $2
>   if [ -r "$A_OUT" ] ; then
>     ./"$A_OUT"
>   else
>     echo "failed"
>   fi
> else
>   rm -f dummy.c
>   echo "SKIPPED: German locale not installed"
> fi

Regards,

Adriaan van Os

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Frank Heckenbach compiling-update 25 Jan 2005, 17:56:06
jan.ruzicka@comcast.net compiling-update 25 Jan 2005, 20:22:20
CBFalconer compiling-update 25 Jan 2005, 20:00:00
Adriaan van Os compiling-update 26 Jan 2005, 04:19:04
Adriaan van Os compiling-update 26 Jan 2005, 04:38:43
jan.ruzicka@comcast.net compiling-update 26 Jan 2005, 00:20:43
Adriaan van Os compiling-update 26 Jan 2005, 14:54:47
Frank Heckenbach compiling-update 26 Jan 2005, 17:35:06
Frank Heckenbach compiling-update 26 Jan 2005, 17:56:06
Frank Heckenbach compiling-update 26 Jan 2005, 16:53:11
Adriaan van Os compiling-update 26 Jan 2005, 19:03:50
CBFalconer compiling-update 26 Jan 2005, 12:55:43
Thorsten Glaser compiling-update 26 Jan 2005, 21:36:40
jan.ruzicka@comcast.net compiling-update 27 Jan 2005, 00:10:39
Igor Marnat current status of --range-cgecking 27 Jan 2005, 15:06:47
Emil Jerabek compiling-update 27 Jan 2005, 13:30:53
Igor Marnat problems with set of byte 27 Jan 2005, 15:49:17

In reply to

Author Subject Date
jan.ruzicka@comcast.net compiling-update 7 Jan 2005, 08:35:21

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).