From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 15 15:10:07 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D3A20106568D for ; Wed, 15 Feb 2012 15:10:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BD5A58FC16 for ; Wed, 15 Feb 2012 15:10:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q1FFA7Nq085009 for ; Wed, 15 Feb 2012 15:10:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q1FFA7Wt085008; Wed, 15 Feb 2012 15:10:07 GMT (envelope-from gnats) Date: Wed, 15 Feb 2012 15:10:07 GMT Message-Id: <201202151510.q1FFA7Wt085008@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Andriy Gapon Cc: Subject: Re: misc/165140: mount_msdosfs -W koi2dos cannot read file No. X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Andriy Gapon List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2012 15:10:07 -0000 The following reply was made to PR misc/165140; it has been noted by GNATS. From: Andriy Gapon To: Thor Ablestar Cc: bug-followup@FreeBSD.org Subject: Re: misc/165140: mount_msdosfs -W koi2dos cannot read file No. Date: Wed, 15 Feb 2012 17:04:36 +0200 on 15/02/2012 15:53 Thor Ablestar said the following: > >> Right. You have to use UTF-8 locale. >> > 1. Do I understand correctly that /usr/src/sbin/mount_msdosfs/mount_msdosfs.c > takes the conversion table from /usr/ports/converters/libiconv ? Well, as unexpected as it is, the answer is yes. mount_msdosfs uses libkiconv(3) which dlopen()s libiconv.so, which is not provided by the base system and thus has to come from a thirdparty, typically the iconv port. We already have a BSD-licensed iconv in the src tree, but it is not connected to the build yet. > 2. As I understand, accessibility of the file containing "No." in it's name > depends entirely on -L argument for mount_msdosfs command, and not on LC_CTYPE. That -L controls how the OS internally represents the file names on the filesystem. > The filenames may LOOK differently but the files are still accessible under their > garbaged names. Locale controls output and input of characters. -- Andriy Gapon