This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Testsuite: Avoid \r\r\n problem of *-*-mingw* host
- From: Doug Evans <dje at google dot com>
- To: Pierre Muller <pierre dot muller at ics-cnrs dot unistra dot fr>
- Cc: Joel Brobecker <brobecker at adacore dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Wed, 18 Sep 2013 10:14:36 -0700
- Subject: Re: [RFC] Testsuite: Avoid \r\r\n problem of *-*-mingw* host
- Authentication-results: sourceware.org; auth=none
- References: <20130918021125 dot GL3132 at adacore dot com> <CADPb22S9V2UM-2FA=0QPhe1bp38HxSuXU4xFy83DgDPWfsmQpQ at mail dot gmail dot com> <20130918134359 dot GM3132 at adacore dot com> <5239cde9 dot 0db6b40a dot 21be dot fffff5f5SMTPIN_ADDED_BROKEN at mx dot google dot com>
On Wed, Sep 18, 2013 at 8:59 AM, Pierre Muller
<pierre.muller@ics-cnrs.unistra.fr> wrote:
>
>
>> -----Message d'origine-----
>> De : gdb-patches-owner@sourceware.org [mailto:gdb-patches-
>> owner@sourceware.org] De la part de Joel Brobecker
>> Envoyé : mercredi 18 septembre 2013 15:44
>> À : Pierre Muller
>> Cc : 'Doug Evans'; 'gdb-patches'
>> Objet : Re: [RFC] Testsuite: Avoid \r\r\n problem of *-*-mingw* host
>>
>> > > Presumably two difference pieces of software are doing the \n -> \r\n
>> > > translation.
>> > There is also some \r-> \r\n translation appearing
>> > in normal testsuite on any system.
>>
>> I am wondering if there would be a way to disable that testsuite
>> translation in that case...
> Maybe we could use this
> http://www.tcl.tk/man/tcl8.0/TclCmd/fconfigure.htm
>
> But I still did not understand how it really works,
> nor did I really find to which channel I should apply
> this so that mingw host GDB's output is handled correctly.
>
> Maybe someone else on the list knows more about this
> tcl command and how it could be used for our problem!
>
> Pierre Muller
If it is Tcl that's doing the other \n -> \r\n translation this looks promising.