From owner-freebsd-wireless@FreeBSD.ORG Mon Jun 17 20:41:47 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 69BCB8B4 for ; Mon, 17 Jun 2013 20:41:47 +0000 (UTC) (envelope-from djvasi@gmail.com) Received: from mail-wg0-x22a.google.com (mail-wg0-x22a.google.com [IPv6:2a00:1450:400c:c00::22a]) by mx1.freebsd.org (Postfix) with ESMTP id 07DED1E78 for ; Mon, 17 Jun 2013 20:41:46 +0000 (UTC) Received: by mail-wg0-f42.google.com with SMTP id z11so3988408wgg.1 for ; Mon, 17 Jun 2013 13:41:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=U8ItWsRtHVwhPZepA7yxubjXSxv966OzkCKHrGghNMY=; b=yAfEg0T7C7SBqzC+cj7IrAEdw0O4ii/ghRrIZyDonTbz+5hiYn4q8ii9rJMwU0TC/r 0sK/NkJB7OP87XzsvvmYDGPpEcdtk6oHUQEsOq/2MP0f68ohxOUf6P/BSefIh/iWjyMv tFxG5whDcckCyIT84wZliAE0cTzEGRpM44rz0RSEvgQZXmGW99DGRexTFslpCH28CNd6 gWFF3iJ4Y1yaYaSqMDJzz6wla09ItLmDwO9XCEF5k3KaLRtHS9905Dqgu0vkSCk4caI0 xXauKUWxwkRL0QPU9X8olmy+bZvttQR6y4HMRU3I7qNoeuFZxgzczCr9TuMuaWwqOVln BF4g== X-Received: by 10.180.76.200 with SMTP id m8mr5854619wiw.24.1371501706084; Mon, 17 Jun 2013 13:41:46 -0700 (PDT) MIME-Version: 1.0 Sender: djvasi@gmail.com Received: by 10.216.60.130 with HTTP; Mon, 17 Jun 2013 13:41:16 -0700 (PDT) From: Dave Vasilevsky Date: Mon, 17 Jun 2013 16:41:16 -0400 X-Google-Sender-Auth: UTvw6T54WNUvkKWmTpV7UAeE5E8 Message-ID: Subject: [PATCH] Allow ndisgen to work without libiconv port To: freebsd-wireless@freebsd.org Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Jun 2013 20:41:47 -0000 Currently, ndisgen refuses to process UTF-16 .inf files unless libiconv is installed. Unfortunately, if you need ndis you probably don't have a net connection, which makes it hard to get libiconv. This patch works around the problem by integrating a very small UTF-16 to UTF-8 converter into ndiscvt. It auto-detects UTF-16 encoding, so it should Just Work on any .inf file. http://www.freebsd.org/cgi/query-pr.cgi?pr=179285 I'd appreciate testing against various .inf files, to ensure it's working right. Code review would also be great, especially by anyone with a commit bit :) Cheers, Dave