From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Krey Subject: Re: Git, Mac OS X and German special characters Date: Sat, 1 Oct 2011 21:47:46 +0200 Message-ID: <20111001194746.GA16826@inner.h.iocl.org> References: <4E87182C.8050201@op5.se> <4E872288.10503@op5.se> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Albert Zeyer , Git Mailing List To: Andreas Ericsson X-From: git-owner@vger.kernel.org Sat Oct 01 21:48:09 2011 Return-path: Envelope-to: gcvg-git-2@lo.gmane.org Received: from vger.kernel.org ([209.132.180.67]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RA5Xa-000081-94 for gcvg-git-2@lo.gmane.org; Sat, 01 Oct 2011 21:48:06 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751670Ab1JATrx convert rfc822-to-quoted-printable (ORCPT ); Sat, 1 Oct 2011 15:47:53 -0400 Received: from continuum.iocl.org ([217.140.74.2]:49054 "EHLO continuum.iocl.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750950Ab1JATrw (ORCPT ); Sat, 1 Oct 2011 15:47:52 -0400 Received: (from krey@localhost) by continuum.iocl.org (8.11.3/8.9.3) id p91Jlku18816; Sat, 1 Oct 2011 21:47:46 +0200 Content-Disposition: inline In-Reply-To: <4E872288.10503@op5.se> User-Agent: Mutt/1.4.2.1i X-message-flag: What did you expect to see here? Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Archived-At: On Sat, 01 Oct 2011 09:24:08 +0000, Andreas Ericsson wrote: =2E.. > The trouble is that they may represent two different files on a > different filesystem. The Linux kernel repo has plenty of files > that exist with both uppercase and lowercase characters, like so: > SOMEFILE_driver.c > somefile_driver.c >=20 > This is perfectly valid on all sensible and case-sensitive > filesystems, but breaks horribly on HFS. It also breaks on windows, except in at least one country[1]. And the latter alone is good reason why no VCS should try to forbid to use different characters that some filesystems (and only some) consider the same. > There are other, far more > "interesting" cases when you involve special chars such as the > german umlaut, or the swedish =E5=E4=F6 characters. Care to share some? The question is, should git forbid two filenames that consist of the *same* characters, only differently uni-encoded? I don't think anyone would make two files named 'B=FCro', with different unicode encodings. But as far as I know that is a shady area. Andreas [1] Which has 'i with dot' and 'i without dot' both in uppercase and lowercase variant, so I and i are not the 'same'.