# Invalid responses to 8bit encoding and In-Reply-To questions

4 messages from 2015-02-04 to 2015-04-01. Participants: Geert Uytterhoeven, Junio C Hamano, Guilhem Bichot.
Thread: https://gitlist.dev/t/38496

## Geert Uytterhoeven, 2015-02-04 09:07

Subject: Invalid responses to 8bit encoding and In-Reply-To questions
Message-ID: <CAMuHMdWbHMPEwkYvzKzzc6L0T8ufk62DGS2sZ1w1BthL1kAZWA@mail.gmail.com>
URL: https://gitlist.dev/e/CAMuHMdWbHMPEwkYvzKzzc6L0T8ufk62DGS2sZ1w1BthL1kAZWA%40mail.gmail.com

```
>From a thread on another mailing list:
| > Content-Type: text/plain; charset=y
| > Content-Transfer-Encoding: 8bit
| >
| > When I try to apply it git am says:
| >
| > $ git am --signoff geert1.patch
| > fatal: cannot convert from y to UTF-8
| >
| > Wut? I never heard of an encoding named "y", and SMTP is
| > not my strongest subject anyway.
|
| Oops, I'm afraid automatic-I replied "y" to the git-send-email question
| "Which 8bit encoding should I declare [UTF-8]?"
| (happened before with the In-Reply-To questions ;-(

Would it be possible to reject obviously wrong replies ("y", "yes", "n", "no")
to the 8bit encoding and In-Reply-To questions?

Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

```

## Junio C Hamano, 2015-02-04 18:34

Subject: Re: Invalid responses to 8bit encoding and In-Reply-To questions
Message-ID: <xmqqa90to78v.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqqa90to78v.fsf%40gitster.dls.corp.google.com
In-Reply-To: <CAMuHMdWbHMPEwkYvzKzzc6L0T8ufk62DGS2sZ1w1BthL1kAZWA@mail.gmail.com>

```
Geert Uytterhoeven <geert@linux-m68k.org> writes:

> | Oops, I'm afraid automatic-I replied "y" to the git-send-email question
> | "Which 8bit encoding should I declare [UTF-8]?"
> | (happened before with the In-Reply-To questions ;-(
>
> Would it be possible to reject obviously wrong replies ("y", "yes", "n", "no")
> to the 8bit encoding and In-Reply-To questions?

There is no canned configuration to do so, if that is what you are
asking.

It would be possible to do so with code changes to git-send-email;
look for "ask(", "valid_re", and "confirm_only" to see how they are
used in existing code that ask questions, if you are interested.

```

## Guilhem Bichot, 2015-04-01 10:53

Subject: Re: Invalid responses to 8bit encoding and In-Reply-To questions
Message-ID: <loom.20150401T125113-830@post.gmane.org>
URL: https://gitlist.dev/e/loom.20150401T125113-830%40post.gmane.org
In-Reply-To: <xmqqa90to78v.fsf@gitster.dls.corp.google.com>

```
Junio C Hamano <gitster <at> pobox.com> writes:

> 
> Geert Uytterhoeven <geert <at> linux-m68k.org> writes:
> 
> > | Oops, I'm afraid automatic-I replied "y" to the git-send-email question
> > | "Which 8bit encoding should I declare [UTF-8]?"
> > | (happened before with the In-Reply-To questions ;-(
> >
> > Would it be possible to reject obviously wrong replies ("y", "yes", "n",
"no")
> > to the 8bit encoding and In-Reply-To questions?
> 
> There is no canned configuration to do so, if that is what you are
> asking.
> 
> It would be possible to do so with code changes to git-send-email;
> look for "ask(", "valid_re", and "confirm_only" to see how they are
> used in existing code that ask questions, if you are interested.

Today I stumbled on exactly this; a colleague had probably typed "yes" when
inappropriate, and the email I received from git-send-email had:

Content-Type: text/plain; charset=yes

then "git am" complained.

```

## Junio C Hamano, 2015-04-01 18:03

Subject: Re: Invalid responses to 8bit encoding and In-Reply-To questions
Message-ID: <xmqq8uebn2th.fsf@gitster.dls.corp.google.com>
URL: https://gitlist.dev/e/xmqq8uebn2th.fsf%40gitster.dls.corp.google.com
In-Reply-To: <loom.20150401T125113-830@post.gmane.org>

```
Guilhem Bichot <guilhem.bichot@oracle.com> writes:

> Junio C Hamano <gitster <at> pobox.com> writes:
>
>> It would be possible to do so with code changes to git-send-email;
>> look for "ask(", "valid_re", and "confirm_only" to see how they are
>> used in existing code that ask questions, if you are interested.
>
> Today I stumbled on exactly this; a colleague had probably typed "yes" when
> inappropriate, and the email I received from git-send-email had:
>
> Content-Type: text/plain; charset=yes

Then upcoming release Git 2.4.0 will delight you ;-)

```
