From owner-svn-src-all@FreeBSD.ORG Sat Nov 24 08:00:56 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B3F937ED for ; Sat, 24 Nov 2012 08:00:56 +0000 (UTC) (envelope-from mailer-daemon@vniz.net) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id 2DFC08FC19 for ; Sat, 24 Nov 2012 08:00:55 +0000 (UTC) Received: by mail-la0-f54.google.com with SMTP id j13so9259311lah.13 for ; Sat, 24 Nov 2012 00:00:54 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:disposition-notification-to:date:from:user-agent :mime-version:to:cc:subject:references:in-reply-to:openpgp :content-type:content-transfer-encoding:x-gm-message-state; bh=fgFcrPBV1fchEttrA5FrSkJXPTwYafPYOyAf79oIa5g=; b=jhYnqDfJMSVV0zxr6OVlrLvnR6kJPSrWwxGY6D28LuUh04vEfvSKz+g7xL+d7Hxp0U NQn5bpcRrQO2MCdq7NFqRZfKkl0Ns1SVYxQezlhUoQ3I4aTiIY0GYpUrMzHIeCccZ3q5 jTL0Ht34Ixtv9H4Gvo2k0INogs/BYsMZKp831HxnKSWdTNj3yktKF2wL0rFt71uthTlG OJshSVQKnYDHk0bHLHyHFdVVFru11biFsE/UVy82nhDY/q8xyJqubJ4iUkD5JMtqFirX I1p7nQbxxzh0qDQ1Vtq9zRVCs7OQhFWigk00W9d5YNdwegZCD35n7z9wD6TFcuv/eRjA TCgQ== Received: by 10.112.49.202 with SMTP id w10mr2482042lbn.2.1353744054500; Sat, 24 Nov 2012 00:00:54 -0800 (PST) Received: from [192.168.1.2] ([89.169.163.3]) by mx.google.com with ESMTPS id sx3sm3096802lab.9.2012.11.24.00.00.53 (version=SSLv3 cipher=OTHER); Sat, 24 Nov 2012 00:00:53 -0800 (PST) Message-ID: <50B07EB6.3010503@freebsd.org> Date: Sat, 24 Nov 2012 12:00:54 +0400 From: Andrey Chernov User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Andrew Turner Subject: Re: svn commit: r243474 - head/usr.bin/cut References: <201211240415.qAO4FPaG062952@svn.freebsd.org> In-Reply-To: <201211240415.qAO4FPaG062952@svn.freebsd.org> OpenPGP: id=964474DD Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQmtcPoWIZB0iQH5KWTsYifYp9CetswBn8ucGxjWddTd0ENKwGu4nLNbGxMfI9xx+DPUiaGt Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Nov 2012 08:00:56 -0000 On 24.11.2012 8:15, Andrew Turner wrote: > The is_delim function works on wchar_t characters not ints, update the > function to take a wchar_t as it's argument. > static int > -is_delim(int ch) > +is_delim(wchar_t ch) > { > if (wflag) { > if (ch == ' ' || ch == '\t') > I can't look at the whole code at this moment, but taking standalone this is incorrect comparison for wchar_t. Should be L' ' and L'\t' instead.