Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!us.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!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.011 X-Spam-Evidence: '*H*': 0.98; '*S*': 0.00; 'subject:Windows': 0.02; 'cc:addr:python-list': 0.11; 'windows': 0.15; 'accepts': 0.16; 'backslashes': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'slash': 0.16; 'subject:Unicode': 0.16; '(you': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'message- id:@mail.gmail.com': 0.30; "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; 'received:google.com': 0.35; 'pm,': 0.38; 'most': 0.60; 'skip:* 10': 0.61; 'forward': 0.65; 'to:none': 0.92 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:cc :content-type; bh=6SVRw86UVvYMZrxi07IDP0VAuwFddKFQLY99q8YjTaw=; b=d9bIdlvOOydSMpYzcP5kst+O+DJpRIucnBEZEWYIJlMWsBwVqq8puhLD8lXI+HquQb NhYBFutJ+6OLrsy8Nu38esxjhcaw58cad2cReCD+GakMKpehtyNlNq3+FK198/ESWrxs xfHrPTQCiviVffdIfQMnsZEiFbo9wk446jEsJae91KPFIy4dmZN3IFx2z//Q+4tydQWV K7XMU3ZoQ+Y051eR2Vw2zweLKFkttBXAf+O1NaR1D1+weXRuZVMEDEBqw9SUb7uLgC1y BPe4WlLriAcYOqfBEHK8ip7fc4Ke2XqOvNOtxtXtl73TNSi4IrHEbP65ZClfa/qH+OVk d40Q== MIME-Version: 1.0 X-Received: by 10.68.235.6 with SMTP id ui6mr4176993pbc.45.1396494612958; Wed, 02 Apr 2014 20:10:12 -0700 (PDT) In-Reply-To: <533cc967$0$2909$c3e8da3$76491128@news.astraweb.com> References: <533cc967$0$2909$c3e8da3$76491128@news.astraweb.com> Date: Thu, 3 Apr 2014 14:10:12 +1100 Subject: Re: Unicode Chars in Windows Path From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 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: 11 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1396494621 news.xs4all.nl 2843 [2001:888:2000:d::a6]:32832 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:69567 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 (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. So when you come to display a Windows path, you may want to convert to backslashes. But that's for display. ChrisA