Path: csiph.com!x330-a1.tempe.blueboxinc.net!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder2.hal-mli.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!tudelft.nl!txtfeed1.tudelft.nl!multikabel.net!newsfeed10.multikabel.net!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed5.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.013 X-Spam-Evidence: '*H*': 0.97; '*S*': 0.00; 'url:bugs': 0.05; 'names.': 0.07; 'system?': 0.07; 'terry': 0.07; 'filename': 0.09; 'reply- to:addr:comp.lang.python': 0.09; 'to:addr:comp.lang.python': 0.09; 'am,': 0.12; 'wednesday,': 0.15; 'reedy': 0.16; 'cc:addr:python- list': 0.16; 'question.': 0.16; 'wrote:': 0.18; '2.x': 0.18; '(which': 0.19; 'cc:no real name:2**0': 0.20; 'maybe': 0.21; 'header:In-Reply-To:1': 0.22; "shouldn't": 0.23; 'cc:2**0': 0.24; 'windows': 0.26; 'compile': 0.29; 'cc:addr:python.org': 0.29; 'example': 0.29; 'header:User-Agent:1': 0.33; 'received:209.85.212': 0.34; 'file.': 0.34; 'deleted.': 0.34; 'issue': 0.35; 'url:python': 0.36; 'file': 0.36; 'question': 0.36; 'encoding': 0.37; 'but': 0.37; 'received:google.com': 0.37; 'think': 0.37; 'could': 0.37; 'open': 0.38; 'received:209.85': 0.38; 'url:org': 0.39; 'should': 0.39; 'why': 0.39; 'received:209': 0.40; 'your': 0.61; 'from:no real name:2**0': 0.63; 'believe': 0.65; '2012': 0.67; '11,': 0.68; 'header:Reply- To:1': 0.71; 'reply-to:no real name:2**0': 0.72; 'reply- to:addr:googlegroups.com': 0.74; 'received:209.85.212.56': 0.91; 'received:mail-vw0-f56.google.com': 0.91 Newsgroups: comp.lang.python Date: Wed, 11 Jan 2012 03:27:46 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=92.118.192.232; posting-account=hE3C6QoAAABfEcluxFXbMlrPw7iVzZYr References: <9043309.329.1326169476466.JavaMail.geo-discussion-forums@yqhi24> User-Agent: G2/1.0 X-Google-Web-Client: true MIME-Version: 1.0 Subject: Re: UnicodeEncodeError in compile From: pyscripter@gmail.com To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: comp.lang.python@googlegroups.com List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Message-ID: Lines: 16 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1326281269 news.xs4all.nl 6914 [2001:888:2000:d::a6]:34619 X-Complaints-To: abuse@xs4all.nl Xref: x330-a1.tempe.blueboxinc.net comp.lang.python:18819 On Wednesday, January 11, 2012 5:50:51 AM UTC+2, Terry Reedy wrote: > On 1/10/2012 3:08 AM, Terry Reedy wrote: > Is this a filename that could be an actual, valid filename on your system? Yes it is. open works on that file. > Good question. I believe this holdover from 2.x should be deleted. > I argued that in http://bugs.python.org/issue10114 > (which was about a different problem) and now, directly, in > http://bugs.python.org/issue13758 > Maybe the example of this question can be added to the issue 13785 as a proof that compile fails on valid file names. But I think the real issue is why on modern Windows systems the file system encoding is mbcs. Shouldn't it be utf-16?