From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17439 invoked by alias); 2 Jun 2014 17:16:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32675 Received: (qmail 6050 invoked from network); 2 Jun 2014 17:16:14 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-Biglobe-Sender: Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.2\)) Subject: Re: Unicode, Korean, normalization form, Mac OS X and tab completion From: "Jun T." In-Reply-To: <140601125323.ZM9969@torch.brasslantern.com> Date: Tue, 3 Jun 2014 02:15:38 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <89931C75-9470-40CA-B278-EE6A5746582D@kba.biglobe.ne.jp> References: <20140531201617.4ca60ab8@pws-pc.ntlworld.com> <140531142926.ZM556@torch.brasslantern.com> <20140601022527.GD1820@tarsus.local2> <140601005624.ZM3283@torch.brasslantern.com> <140601125323.ZM9969@torch.brasslantern.com> To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.1878.2) X-Biglobe-Spnum: 50966 2014/06/02 04:53=E3=80=81Bart Schaefer = =E3=81=AE=E3=83=A1=E3=83=BC=E3=83=AB=EF=BC=9A > + if (iconv(conv_ds, > + &orig_name_ptr, &orig_name_len, > + &conv_name_ptr, &conv_name_len) >=3D 0) { > + if (orig_name_len =3D=3D 0) { > + /* Completely converted, metafy and return */ > + *conv_name_ptr =3D '\0'; > + return metafy(conv_name, -1, META_STATIC); > + } > + } Is it possible for iconv() to return >=3D0 while orig_name_len !=3D 0 ? man iconv(3) mentions four possible cases, three of them are error (return value is -1), and the remaining one is (returnvalue>=3D0 and orig_name_len=3D=3D0).