From patchwork Mon Sep 17 13:31:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Lefebvre X-Patchwork-Id: 1466901 Return-Path: X-Original-To: patchwork-cifs-client@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id C9E0EDF2D8 for ; Mon, 17 Sep 2012 13:31:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751486Ab2IQNbj (ORCPT ); Mon, 17 Sep 2012 09:31:39 -0400 Received: from mail-ob0-f174.google.com ([209.85.214.174]:50987 "EHLO mail-ob0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751430Ab2IQNbj (ORCPT ); Mon, 17 Sep 2012 09:31:39 -0400 Received: by obbuo13 with SMTP id uo13so8910561obb.19 for ; Mon, 17 Sep 2012 06:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=mIb9szSuaJ/EovEotV2mN5UocJKRISbJMYMEfmvHRxc=; b=jUlKWHnDERZCGV7DLP1VWDE7FRELLf3/ycAL6Z4ZRUeBAaCFy2rXf/lBdqJ9VNdY49 w4qHb+FyEY+wu+HzFLgZCmM+cbemhzaVHGQWN8GAATU8tveIlaDn2KWYfyS4A/d2yOUz xjn6CdekW0W1VKvxHMxDhSGDIqen9E9fp/PAZbaggqhtT26qhwG7uhchGXEt2LAHqRCK fk6BMw+fgLwYg/9n2Vmk/R4VoITOdFCGxlUJnxA2etNMwzogDrchh7jsXP/PFeyRd/Tk TIt7D8Pkqb8bnHuwxGbx+I6NDn/Q7oBSt6w4tmpTuiPFTxm3JlknuquV682MKnZ4IbgM SoVA== MIME-Version: 1.0 Received: by 10.60.25.131 with SMTP id c3mr11664031oeg.50.1347888698618; Mon, 17 Sep 2012 06:31:38 -0700 (PDT) Received: by 10.76.68.105 with HTTP; Mon, 17 Sep 2012 06:31:38 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 Sep 2012 15:31:38 +0200 Message-ID: Subject: cifs.mount: mapchars + utf8 = loop From: Nicolas Lefebvre To: linux-cifs@vger.kernel.org Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Hello, I'm trying to mount a smb share with both "mapchars" and "iocharset=utf8" options and it seems to be bogus. I must used mapchars option because some folder names contain non-ascii characters and I must used iocharset=utf8 because some file names contain question marks. I have searched on the internet and found a very simple patch for a 2.6.32 kernel (https://bugzilla.samba.org/show_bug.cgi?id=6767) differences for me between the two misc.c files and I'm not able to report the patch in my kernel. Did someone have an idea ? Thanks, Nicolas --- To unsubscribe from this list: send the line "unsubscribe linux-cifs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- orig/linux-2.6.32/fs/cifs/misc.c 2009-12-03 04:51:21.000000000 +0100 +++ linux-2.6.32/fs/cifs/misc.c 2011-10-09 22:25:10.767951322 +0200 @@ -713,7 +713,7 @@ } ctoUCS_out: - return i; + return j; } But I'm on Ubuntu 12.04 with a 3.2.0-31 kernel and there is too much