Date: Thu, 29 Apr 2010 13:59:19 -0400 From: Greg Larkin <glarkin@FreeBSD.org> To: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp> Cc: =?ISO-8859-1?Q?Jouko=5FLumij=3Fvi?= <jlumijar@sun3.oulu.fi>, Gerald Pfeifer <gerald@pfeifer.com>, FreeBSD Ports ML <freebsd-ports@freebsd.org> Subject: Re: CFT: print/pdftk port compiled with Java compiler from gcc 4.5 Message-ID: <4BD9C8F7.4030600@FreeBSD.org> In-Reply-To: <201004220758.AA01286@POLYMER5.scphys.kyoto-u.ac.jp> References: <4BC4B712.2080109@FreeBSD.org> <201004220758.AA01286@POLYMER5.scphys.kyoto-u.ac.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Tsurutani Naoki wrote: > Greg Larkin <glarkin@freebsd.org> wrote: > >> As far as I can tell, this error is caused by the LANG setting which >> changes the line: >> >> if (value.startsWith("\"")) >> >> into something that results an unterminated string. I suppose the >> backslash loses its meaning as an escape character. >> >> I found some references to the same error in Google, posted by folks >> trying to compile software with different LANG settings. I haven't >> found a general fix yet, but maybe it can be done by building a >> character string from individual, unescaped characters, then converting >> them to a java.lang.String object for use in the .startsWith() function. >> >> If you could submit a PR to support building with LANG=ja_JP.eucJP, I >> would be very appreciative! > > Thank you for your reply. > But I have no idea to avoid this... > This trouble does not occur while building with gcc42 or any older building > processes. Therefore I think this may be a bug of gcc45. > Moving to gcc45, this may cause an error. > In addition, run-time dependence to gcc library may be necessary > as I said in another mail. Hi Tsurutani, Can you file a bug report against gcj45 with the LANG=ja_JP.eucJP setting, using the pdftk problem as an example? That way, the upstream gcc developers will be notified that there's a problem. In the mean time, I am investigating whether it's feasible to add Java support to all of the lang/gcc4* ports so pdftk can use a version older than 4.5, if the gcj binary is already installed. This will also save a lot of time installing a complete gcc just to get the gcj compiler. Thank you, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iD8DBQFL2cj30sRouByUApARArt6AKC/Wj8VdMkI1sRyLt56g/ROTCFsYACgn7tE yhWtxv6W9jg0WJXv0VfCxLU= =sP3a -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BD9C8F7.4030600>