From: "Torsten Bögershausen" <tboegi@web.de>
To: avarab@gmail.com, gitster@pobox.com, git@vger.kernel.org
Cc: tboegi@web.de
Subject: [PATCH V2] t0204: Removed TC emitting ISO-8859-1 from our UTF-8 *.mo files
Date: Tue, 6 Mar 2012 21:39:10 +0100 [thread overview]
Message-ID: <201203062139.10812.tboegi@web.de> (raw)
Removed this test case:
gettext: Emitting ISO-8859-1 from our UTF-8 *.mo files / Runes
The removed test case tried to show UTF-8 encoded text in a ISO-8859-1
locale with code points that don't fit into ISO-8859-1.
Some systems convert these code points into question marks,
(that is what the test expects) while other don't support
an ISO-8859-1 locale anymore and use UTF-8 anyway.
Remove the text case as there is no reason to insist that the fall back
behaviour is to convert code points out of range into question marks.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
---
>This is insane.
[snip]
>I do not see any reason to insist that their fallback behaviour must
>be to fill them with question marks. In other words, I simply do
>not see the point of this test and the original "pass runs of
>question" to begin with, and this patch makes things even worse.
>Why not get rid of this single test that only tries to check the
>output for an impossible request?
>Ævar, am I missing something?
I don't think so.
Better a good remove than a bad improve
Junio, thanks for the replay,
I tried to convert your comments into a commit message.
t/t0204-gettext-reencode-sanity.sh | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
diff --git a/t/t0204-gettext-reencode-sanity.sh b/t/t0204-gettext-reencode-sanity.sh
index 189af90..b0628a1 100755
--- a/t/t0204-gettext-reencode-sanity.sh
+++ b/t/t0204-gettext-reencode-sanity.sh
@@ -26,20 +26,6 @@ test_expect_success GETTEXT_ISO_LOCALE 'gettext: Emitting ISO-8859-1 from our UT
test_cmp expect actual
'
-test_expect_success GETTEXT_ISO_LOCALE 'gettext: Emitting ISO-8859-1 from our UTF-8 *.mo files / Runes' '
- LANGUAGE=is LC_ALL="$is_IS_iso_locale" gettext "TEST: Old English Runes" >runes &&
-
- if grep "^TEST: Old English Runes$" runes
- then
- say "Your system can not handle this complexity and returns the string as-is"
- else
- # Both Solaris and GNU libintl will return this stream of
- # question marks, so it is s probably portable enough
- printf "TILRAUN: ?? ???? ??? ?? ???? ?? ??? ????? ??????????? ??? ?? ????" >runes-expect &&
- test_cmp runes-expect runes
- fi
-'
-
test_expect_success GETTEXT_LOCALE 'gettext: Fetching a UTF-8 msgid -> UTF-8' '
printf "TILRAUN: ‚einfaldar‘ og „tvöfaldar“ gæsalappir" >expect &&
LANGUAGE=is LC_ALL="$is_IS_locale" gettext "TEST: ‘single’ and “double” quotes" >actual &&
--
1.7.9.rc2
reply other threads:[~2012-03-06 20:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203062139.10812.tboegi@web.de \
--to=tboegi@web.de \
--cc=avarab@gmail.com \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).