Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: eryk sun Newsgroups: comp.lang.python Subject: Re: cannot open file with non-ASCII filename Date: Wed, 16 Dec 2015 21:39:42 -0600 Lines: 39 Message-ID: References: <20151214221751.GM12472@rus.uni-stuttgart.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de Cy1VlwW0f6e9N694d6yjCQb2bt4l/lNZYEXhn8hOU8uQ== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:209.85.223': 0.03; 'apis': 0.07; 'subject:file': 0.07; 'api': 0.09; '[1]:': 0.09; 'runtime': 0.09; 'python': 0.10; ':-)': 0.12; '(via': 0.16; '[1].': 0.16; 'dlls': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:non': 0.16; 'subsystem': 0.16; 'wrote:': 0.16; 'driver': 0.18; 'library': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:2**0': 0.20; 'programming': 0.22; 'am,': 0.23; 'dec': 0.23; 'nearly': 0.23; 'implemented': 0.24; 'unix': 0.24; 'header:In-Reply-To:1': 0.24; 'coding': 0.27; 'message- id:@mail.gmail.com': 0.27; 'then.': 0.27; 'host': 0.28; 'function': 0.28; 'mode.': 0.29; 'ago': 0.29; '15,': 0.30; 'probably': 0.31; 'implement': 0.32; 'usually': 0.33; 'environment,': 0.33; 'windows.': 0.33; 'tue,': 0.34; 'weeks': 0.34; 'running': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'totally': 0.36; 'to:addr:python-list': 0.36; 'subject:: ': 0.37; 'client': 0.37; 'received:209': 0.38; 'subject:-': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'some': 0.40; 'skip:n 10': 0.62; 'different': 0.63; 'architects': 0.66; 'detail.': 0.66; 'services': 0.67; 'led': 0.72; 'actually,': 0.84; 'wine': 0.91 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=GUD0fkjWZM7eCR/SO/tFcYLsemn49xgstHKLx8pI/98=; b=I5QLvUvPN8jq7snTnXhV5NtGg+86X/FBjsHhE7644iY6A0Dbv01KFusAGMDl0wDNoh XJjvPCsiNUCwb98yjjS1zdID47zpPDoc9m28J1JZIkL3stvCWokt9YOE+DWkOgorJ3n/ 4BKMDmw9kiG/MjjzSpoCbi7TQRIg4MiJr6wM4osHWAhh27EOE4reRYryBpxFXZ4OGg0A 6Rp4foHN/mRfd3sI8fBTX33WiS6Zms0dIAEd1AiSHGzev2gyozTgG8NLTywQZJUjMdro a64WDzaolAkg7n5JoPumXUYSKh6Dp+2FsBg4ltQR0frYe8LsZ6fviJp7oYEHysV47+yy PtUQ== X-Received: by 10.107.164.206 with SMTP id d75mr5438092ioj.73.1450323622783; Wed, 16 Dec 2015 19:40:22 -0800 (PST) In-Reply-To: X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100556 On Tue, Dec 15, 2015 at 11:04 AM, Ulli Horlacher wrote: > > Ehhh... I started Python programming some weeks ago and I know nearly > nothing about Windows. I am a UNIX and VMS guy :-) You should feel right at home, then. The Windows NT kernel was designed and implemented by a team of former DEC engineers led by David Cutler, who was one of the principle architects of VMS. There's an old joke that W[indows] NT is VMS + 1. Actually, you'd probably only notice a slight resemblance if you were coding a driver [1]. Microsoft discourages using the native NT API in user mode. Windows client DLLs such as kernel32.dll usually implement an API function in one of three ways, or in combination: using the native runtime library and loader functions (Rtl* & Ldr* in ntdll.dll) calling system services such as Nt* public APIs (ntdll.dll => ntoskrnl.exe) NtUser* & NtGdi* private APIs (user32.dll, gdi32.dll => win32k.sys) using a local procedure call (via ALPC or a driver) to a subsystem process such as csrss.exe - Windows client/server runtime conhost.exe - console host services.exe - service control manager lsass.exe - local security authority smss.exe - session manager But this is all an implementation detail. The API could be implemented in a totally different way in a totally different environment, such as running WINE on Linux. [1]: http://windowsitpro.com/windows-client/windows-nt-and-vms-rest-story