Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Windows': 0.02; 'that?': 0.05; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'jan': 0.12; 'windows': 0.15; 'accepts': 0.16; 'backslashes': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'said.': 0.16; 'slash': 0.16; 'subject:Unicode': 0.16; '(you': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'header:User- Agent:1': 0.23; 'source': 0.25; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; "d'aprano": 0.31; 'names.': 0.31; 'steven': 0.31; 'file': 0.32; 'open': 0.33; 'display': 0.35; 'convert': 0.35; 'but': 0.35; 'to:addr:python- list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'most': 0.60; 'received:173': 0.61; 'skip:* 10': 0.61; 'forward': 0.65; 'received:fios.verizon.net': 0.84 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: Unicode Chars in Windows Path Date: Thu, 03 Apr 2014 14:41:29 -0400 References: <533cc967$0$2909$c3e8da3$76491128@news.astraweb.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-173-75-254-207.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 21 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396550508 news.xs4all.nl 2865 [2001:888:2000:d::a6]:51956 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69603 On 4/2/2014 11:10 PM, Chris Angelico wrote: > On Thu, Apr 3, 2014 at 1:37 PM, Steven D'Aprano wrote: >> Windows accepts both forward and backslashes in file names. > > Small clarification: The Windows *API* accepts both types of slash To me, that is what Steven said. > (you can open a file using forward slashes, for instance), but not all > Windows *applications* are aware of this (generally only > cross-platform ones take notice of this), and most Windows *users* > prefer backslashes. Do you have a source for that? > So when you come to display a Windows path, you > may want to convert to backslashes. But that's for display. -- Terry Jan Reedy