From owner-freebsd-current@freebsd.org Sat Sep 16 04:07:55 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D6598E23C41 for ; Sat, 16 Sep 2017 04:07:55 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from dec.sakura.ne.jp (dec.sakura.ne.jp [210.188.226.8]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9475F662EE; Sat, 16 Sep 2017 04:07:55 +0000 (UTC) (envelope-from junchoon@dec.sakura.ne.jp) Received: from fortune.joker.local (124-18-21-125.dz.commufa.jp [124.18.21.125]) (authenticated bits=0) by dec.sakura.ne.jp (8.15.2/8.15.2/[SAKURA-WEB]/20080708) with ESMTPA id v8G47knv061199; Sat, 16 Sep 2017 13:07:47 +0900 (JST) (envelope-from junchoon@dec.sakura.ne.jp) Date: Sat, 16 Sep 2017 13:07:46 +0900 From: Tomoaki AOKI To: freebsd-current@freebsd.org Cc: jonathan@FreeBSD.org, julian@freebsd.org Subject: Re: extending the maximum filename length (pointer to patch)[request for input] Message-Id: <20170916130746.ed320ba753e5a32242778139@dec.sakura.ne.jp> In-Reply-To: <3C985916-3641-45B7-A721-C4F89A699B70@FreeBSD.org> References: <0154558d-b2ad-af97-3960-3e392678f709@freebsd.org> <8d04540b-6daf-aa13-5648-0ec2541cbae6@freebsd.org> <3C985916-3641-45B7-A721-C4F89A699B70@FreeBSD.org> Organization: Junchoon corps X-Mailer: Sylpheed 3.6.0 (GTK+ 2.24.31; amd64-portbld-freebsd11.1) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Sep 2017 04:07:55 -0000 On Tue, 12 Sep 2017 14:46:12 -0230 "Jonathan Anderson" wrote: > On 12 Sep 2017, at 14:38, Julian Elischer wrote: > > > “〓是一个〓〓多字符文件名〓度的文件目的是命名一个文件用中文或者日文或者〓文字符并且要求字符〓度超〓八十五个字符然后拷〓〓文件到我〓的共享文件〓看看是否能〓拷〓〓文件到我.txt” > > (I have no idea what that says but apparently it's a real filename > > from a windows machine that blew up when written via samba.) > > Google Translate says, amusingly: > "This is a test file for the length of the file name. The purpose is to > name a file in Chinese or Japanese or Korean characters and require the > character to be longer than 85 characters and then copy the file into > our shared folder to see if it can copy the file To me" (.txt, I guess) > > No matter what number you choose for a path length, you're never going > to win against that specific user. :) Most people who doesn't know the "internals" would not matter how long "a character" is. So we'd better assuming the longest-possible character. At worst, file name string can contain shift-in / shift-out or charset change sequences, and become much longer (character sets specific). But if we decide the "filename standard" as UTF-8, it wouldn't be needed and 4 (6?) bytes/character would be sufficient. So if we decide max length on "UTF-8 characters" to be 256, 1536 "bytes" would be sufficient. *Possibly 5 and 6 bytes character in UTF-8 could be already prohibited. If so, 1024 bytes is sufficient. > > > Jon > -- > Jonathan Anderson > jonathan@FreeBSD.org > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > > -- Tomoaki AOKI