Bug#400187: gettext: xgettext segfaults on .lisp files (fwd)

2006-11-28 Thread Bruno Haible
Martin Pitt wrote:
 That bug has already been closed and the patch applied, so that's not
 it (I just checked the package to verify this). So it must be
 something else.

But with this additional patch, it will work.

Alternatively - since your code appears to be Scheme, not Lisp, anyway -
you can use the xgettext option -L Scheme and profit from the 384698 bug fix.

Bruno


*** gettext-tools/src/x-lisp.c.bak  2006-04-03 13:17:56.0 +0200
--- gettext-tools/src/x-lisp.c  2006-11-28 00:57:21.0 +0100
***
*** 1087,1093 
else
  {
/* These are the argument positions.  */
!   if (inner.type == t_string)
  arglist_parser_remember (argparser, arg,
   string_of_object (inner),
   inner_context,
--- 1087,1093 
else
  {
/* These are the argument positions.  */
!   if (argparser != NULL  inner.type == t_string)
  arglist_parser_remember (argparser, arg,
   string_of_object (inner),
   inner_context,



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400187: gettext: xgettext segfaults on .lisp files (fwd)

2006-11-27 Thread Martin Pitt
Hello Bruno,

Bruno Haible [2006-11-27 19:36 +0100]:
 Santiago Vila wrote:
  I received this from the debian bug system.
  
  The bug seems fixed in 0.16 ...
  
  Would you happen to have a fix for this for gettext 0.15?
 
 I believe the patch that I sent you on 2006-08-28 as response to Debian
 bug #384698 should fix this.
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=384698
 Can you verify this (or the opposite)?

That bug has already been closed and the patch applied, so that's not
it (I just checked the package to verify this). So it must be
something else.

Thanks,

Martin

-- 
Martin Pitthttp://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?


signature.asc
Description: Digital signature


Bug#400187: gettext: xgettext segfaults on .lisp files

2006-11-27 Thread Santiago Vila
On Fri, 24 Nov 2006, Martin Pitt wrote:

 Hi Santiago,
 
 Santiago Vila [2006-11-24 12:53 +0100]:
  Does it crash with gettext 0.16 in experimental too?
 
 Took me a while to build everything... 0.16 seems to work fine, it
 did not crash on the lisp file and produced a seemingly good PO
 template.

I'm going to upload 0.16.1 for unstable, then.

Bruno has just explained to me that having 0.15 in unstable is not
a good thing, as it is incompatible with automake 1.10 which is
already in unstable.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400187: gettext: xgettext segfaults on .lisp files

2006-11-24 Thread Martin Pitt
Package: gettext
Severity: important
Version: 0.15-2

While examining the FTBFS of uim:

  ../intltool-update fr.po
  ERROR: xgettext failed to generate PO template file. Please consult
  error message above if there is any.

I tracked this down to xgettext segfaulting while processing a .lisp
file. I tried it with several .lisp files, all of them caused a crash.

I attach an example file from uim, and stripped down the command for
reproducing:

$ xgettext --keyword=_  test.lisp
Segmentation fault (core dumped)

Thanks,

Martin
-- 
Martin Pitthttp://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?
;;; generic-key-custom.scm: Customization variables for generic key bindings
;;;
;;; Copyright (c) 2003-2006 uim Project http://uim.freedesktop.org/
;;;
;;; All rights reserved.
;;;
;;; Redistribution and use in source and binary forms, with or without
;;; modification, are permitted provided that the following conditions
;;; are met:
;;; 1. Redistributions of source code must retain the above copyright
;;;notice, this list of conditions and the following disclaimer.
;;; 2. Redistributions in binary form must reproduce the above copyright
;;;notice, this list of conditions and the following disclaimer in the
;;;documentation and/or other materials provided with the distribution.
;;; 3. Neither the name of authors nor the names of its contributors
;;;may be used to endorse or promote products derived from this software
;;;without specific prior written permission.
;;;
;;; THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS 
IS'' AND
;;; ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
;;; IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
;;; ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE 
LIABLE
;;; FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
;;; DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
;;; OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
;;; HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
;;; LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
;;; OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
;;; SUCH DAMAGE.


(require i18n.scm)


(define-custom-group 'global-keys1
 (_ Global key bindings 1)
 (_ long description will be here.))

(define-custom-group 'global-keys2
 (_ Global key bindings 2)
 (_ long description will be here.))


(define-custom 'generic-on-key '(zenkaku-hankaku Shift )
   '(global-keys1)
   '(key)
   (_ [Global] on)
   (_ long description will be here))

(define-custom 'generic-off-key '(zenkaku-hankaku Shift )
   '(global-keys1)
   '(key)
   (_ [Global] off)
   (_ long description will be here))

(define-custom 'generic-begin-conv-key '( )
   '(global-keys1)
   '(key)
   (_ [Global] begin conversion)
   (_ long description will be here))

(define-custom 'generic-commit-key '(IgnoreCaseControlj 
generic-return-key)
   '(global-keys1)
   '(key)
   (_ [Global] commit)
   (_ long description will be here))

(define-custom 'generic-cancel-key '(escape Control[ 
IgnoreCaseControlg)
   '(global-keys1)
   '(key)
   (_ [Global] cancel)
   (_ long description will be here))

(define-custom 'generic-next-candidate-key '(  down 
IgnoreCaseControln)
   '(global-keys1)
   '(key)
   (_ [Global] next candidate)
   (_ long description will be here))

(define-custom 'generic-prev-candidate-key '(up IgnoreCaseControlp)
   '(global-keys1)
   '(key)
   (_ [Global] previous candidate)
   (_ long description will be here))

(define-custom 'generic-next-page-key '(next)
   '(global-keys1)
   '(key)
   (_ [Global] next page of candidate window)
   (_ long description will be here))

(define-custom 'generic-prev-page-key '(prior)
   '(global-keys1)
   '(key)
   (_ [Global] previous page of candidate window)
   (_ long description will be here))

;;
;; advanced
;;

(define-custom 'generic-beginning-of-preedit-key '(home 
IgnoreCaseControla)
   '(global-keys2)
   '(key)
   (_ [Global] beginning of preedit)
   (_ long description will be here))

(define-custom 'generic-end-of-preedit-key '(end IgnoreCaseControle)
   '(global-keys2)
   '(key)
   (_ 

Bug#400187: gettext: xgettext segfaults on .lisp files

2006-11-24 Thread Santiago Vila
Thanks for the report.

Does it crash with gettext 0.16 in experimental too?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#400187: gettext: xgettext segfaults on .lisp files

2006-11-24 Thread Martin Pitt
Hi Santiago,

Santiago Vila [2006-11-24 12:53 +0100]:
 Does it crash with gettext 0.16 in experimental too?

Took me a while to build everything... 0.16 seems to work fine, it
did not crash on the lisp file and produced a seemingly good PO
template.

Thanks,

Martin

-- 
Martin Pitthttp://www.piware.de
Ubuntu Developer   http://www.ubuntu.com
Debian Developer   http://www.debian.org

In a world without walls and fences, who needs Windows and Gates?


signature.asc
Description: Digital signature