GNU logs - #18458, boring messages

Message sent to bug-libtool@HIDDEN:

X-Loop: help-debbugs@HIDDEN
Subject: bug#18458: Wrapper binary (.libs/lt-PROG.c) corrupts wide character arguments
Resent-From: Pavel Raiskup <praiskup@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
Resent-CC: bug-libtool@HIDDEN
Resent-Date: Fri, 12 Sep 2014 08:27:02 +0000
Resent-Message-ID: <handler.18458.B.14105103801956 <at>>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 18458
X-GNU-PR-Package: libtool
To: 18458 <at>
X-Debbugs-Original-To: bug-libtool@HIDDEN
Received: via spool by submit <at> id=B.14105103801956
          (code B ref -1); Fri, 12 Sep 2014 08:27:02 +0000
Received: (at submit) by; 12 Sep 2014 08:26:20 +0000
Received: from localhost ([]:38845
	by with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at>>)
	id 1XSMBQ-0000VT-67
	for submit <at>; Fri, 12 Sep 2014 04:26:20 -0400
Received: from ([]:51916)
 by with esmtp (Exim 4.80)
 (envelope-from <praiskup@HIDDEN>) id 1XSMBO-0000VL-8x
 for submit <at>; Fri, 12 Sep 2014 04:26:19 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <praiskup@HIDDEN>) id 1XSMBE-0006mR-To
 for submit <at>; Fri, 12 Sep 2014 04:26:17 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-0.0 required=5.0 tests=BAYES_40 autolearn=disabled
Received: from ([2001:4830:134:3::11]:34952)
 by with esmtp (Exim 4.71)
 (envelope-from <praiskup@HIDDEN>) id 1XSMBE-0006mN-Qf
 for submit <at>; Fri, 12 Sep 2014 04:26:08 -0400
Received: from ([2001:4830:134:3::10]:53610)
 by with esmtp (Exim 4.71)
 (envelope-from <praiskup@HIDDEN>) id 1XSMB8-0001zW-Kr
 for bug-libtool@HIDDEN; Fri, 12 Sep 2014 04:26:08 -0400
Received: from Debian-exim by with spam-scanned (Exim 4.71)
 (envelope-from <praiskup@HIDDEN>) id 1XSMB2-0006lg-Gl
 for bug-libtool@HIDDEN; Fri, 12 Sep 2014 04:26:02 -0400
Received: from ([]:10461)
 by with esmtp (Exim 4.71)
 (envelope-from <praiskup@HIDDEN>) id 1XSMB2-0006lb-9b
 for bug-libtool@HIDDEN; Fri, 12 Sep 2014 04:25:56 -0400
Received: from
 ( [])
 by (8.14.4/8.14.4) with ESMTP id s8C8PrM6015504
 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL)
 for <bug-libtool@HIDDEN>; Fri, 12 Sep 2014 04:25:54 -0400
Received: from (
 by (8.14.4/8.14.4) with ESMTP id
 for <bug-libtool@HIDDEN>; Fri, 12 Sep 2014 04:25:53 -0400
From: Pavel Raiskup <praiskup@HIDDEN>
Date: Fri, 12 Sep 2014 10:25:52 +0200
Message-ID: <1895523.UWpBuUkueD@HIDDEN>
User-Agent: KMail/4.13.3 (Linux/3.15.10-201.fc20.x86_64; KDE/4.13.3; x86_64; ;
MIME-Version: 1.0
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"
X-Scanned-By: MIMEDefang 2.68 on
X-detected-operating-system: by GNU/Linux 3.x
X-detected-operating-system: by Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-BeenThere: debbugs-submit <at>
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <>
List-Unsubscribe: <>, 
 <mailto:debbugs-submit-request <at>>
List-Archive: <>
List-Post: <mailto:debbugs-submit <at>>
List-Help: <mailto:debbugs-submit-request <at>>
List-Subscribe: <>, 
 <mailto:debbugs-submit-request <at>>
Errors-To: debbugs-submit-bounces <at>
Sender: "Debbugs-submit" <debbugs-submit-bounces <at>>
X-Spam-Score: -5.0 (-----)


recently I got a bug report in Fedora:
Short summary:  On windows, the 'argv' in main() function is filled
by "preprocessed" content.  When `./wrapper.exe I =E2=99=A5 lt`, the ar=
gv gets
filled by ["./wrapper.exe", "I", "?", "lt"].  Libtool wrapper parses th=
argv[] content and based on this broken arguments it spawns the origina=
binary.  That way, original binary has different arguments and it
complicates testing, for example.

I tried to look at how it is done in the wrapper;  and I believe the
possible fix is non-trivial enough.  We need probably use the
GetcommandLineW and CommandLineToArgvW functions to obtain wide version=
argv.  That way, however, after removing --lt* arguments, you need to
escape the wide argv same way as for non-wide version (and pass it into=

the _wspawnv call, instead of _spawnv).  I am not familiar with windows=

api, so if you see that there is simpler/better solution, please say.

Firstly, I would like to know whether upstream is interested in such fi=
and whether there is somebody interested in patch-review.  Secondly, TB=
I'm not perfect example of guy to do such change (I could give it a try=
thought, through wine the problem seems to be reproducible).  If there =
somebody familiar with windows who wanted to write the patch, I would b=
glad to do the review and testing.

Thanks for ideas!

Message sent:

Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.503 (Entity 5.503)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: Pavel Raiskup <praiskup@HIDDEN>
Subject: bug#18458: Acknowledgement (Wrapper binary (.libs/lt-PROG.c)
 corrupts wide character arguments)
Message-ID: <handler.18458.B.14105103801956.ack <at>>
References: <1895523.UWpBuUkueD@HIDDEN>
X-Gnu-PR-Message: ack 18458
X-Gnu-PR-Package: libtool
Reply-To: 18458 <at>
Date: Fri, 12 Sep 2014 08:27:03 +0000

Thank you for filing a new bug report with

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):

If you wish to submit further information on this problem, please
send it to 18458 <at>

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems

Last modified: Fri, 31 Oct 2014 17:00:04 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.