All of lore.kernel.org
 help / color / mirror / Atom feed
* cfdisk, wrong interpretation of yes in non-english language
@ 2014-08-26  9:18 tnut
  2014-08-26 10:41 ` Stephan Müller
  2014-08-26 17:58 ` Karel Zak
  0 siblings, 2 replies; 7+ messages in thread
From: tnut @ 2014-08-26  9:18 UTC (permalink / raw)
  To: util-linux

I'm building a new installer for the NuTyX distribution.

If another language then english is choose as native language, some 
answer are wrong interpreted

I think you should check both cases are wrong instead of one of them or 
do the test in the opposite way

Here is a proposal of patch:


--- util-linux-2.25/disk-utils/cfdisk.c 2014-07-21 13:36:21.000000000 
+0000
+++ util-linux-2.25-new/disk-utils/cfdisk.c     2014-08-25 
18:52:17.000000000 +0000
@@ -1834,8 +1834,8 @@
                           buf, sizeof(buf));

                 ref = 1;
-               if (rc <= 0 || strcasecmp(buf, "yes") != 0
-                           || strcasecmp(buf, _("yes")) != 0) {
+               if (rc <= 0 ||  (strcasecmp(buf, "yes") != 0
+                           && strcasecmp(buf, _("yes")) != 0)) {
                         info = _("Did not write partition table to 
disk");
                         break;
                 }

Regards


Thierry Nuttens

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-08-26 20:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-08-26  9:18 cfdisk, wrong interpretation of yes in non-english language tnut
2014-08-26 10:41 ` Stephan Müller
2014-08-26 11:33   ` tnut
2014-08-26 12:54     ` Stephan Müller
2014-08-26 17:58 ` Karel Zak
2014-08-26 19:28   ` tnut
2014-08-26 20:23   ` Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.