[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] yesno: Fix behavior difference in ENABLE_NLS
From: |
Tobias Stöckmann |
Subject: |
Re: [PATCH] yesno: Fix behavior difference in ENABLE_NLS |
Date: |
Tue, 24 Mar 2015 11:28:17 +0100 (CET) |
> On March 24, 2015 at 5:08 AM Pádraig Brady <address@hidden> wrote:
> $ LC_ALL=uk_UA.utf8 locale yesexpr
> ^([Yy+]|[Тт][Аа][Кк]?)$
So there are locales that check the whole string... Then yes,
> if (response[response_len - 1] == '\n')
> response[response_len - 1] = '\0';
I totally agree here.
Tobias