On Wed, Sep 04, 2013 at 05:39:10AM -0700, Albert-Jan Roskam wrote:
> Wow, thanks for looking all this up. Thanks also to other people who
> replied. It's not really desirable that a IDE adds confusion to an
> area that's already confusing to begin with.
Well, naturally it isn't desirable to ad
On Wed, Sep 4, 2013 at 8:39 AM, Albert-Jan Roskam wrote:
> But given that chcp returns cp850 on my windows system (commandline),
> wouldn't it be more descriptive if sys.getfilesystemencoding()
> returned 'cp850'?
The common file systems (NTFS, FAT32, UDF, exFAT) support Unicode
filenames. The co
- Original Message -
> From: eryksun
> To: Oscar Benjamin ; Albert-Jan Roskam
>
> Cc: Python Mailing List
> Sent: Sunday, September 1, 2013 7:30 AM
> Subject: Re: [Tutor] myown.getfilesystemencoding()
>
> On Sat, Aug 31, 2013 at 9:16 AM, Oscar Benjamin
>
On Sat, Aug 31, 2013 at 9:16 AM, Oscar Benjamin
wrote:
> Spyder has both an internal interpreter and an external interpreter.
> One is the same interpreter process that runs the Spyder GUI. The
> other is run in a subprocess which keeps the GUI safe but reduces your
> ability to inspect the worksp
On 30 August 2013 17:39, eryksun wrote:
> On Fri, Aug 30, 2013 at 11:04 AM, Albert-Jan Roskam wrote:
>
>> the function returns 850 (codepage 850) when I run it via the command prompt,
>> but 1252 (cp1252) when I run it in my IDE (Spyder).
>
> Maybe Spyder communicates with python.exe as a subproc
On Fri, Aug 30, 2013 at 11:04 AM, Albert-Jan Roskam wrote:
> In Windows, sys.getfilesystemencoding() returns 'mbcs' (multibyte code
> system), which doesn't say very much imho.
Why aren't you using Unicode for the filename? The native encoding for
NTFS is UTF-16, and CPython 2.x uses _wfopen() if
On 2013-08-30 08:04, Albert-Jan Roskam wrote:
> In Windows, sys.getfilesystemencoding() returns 'mbcs' (multibyte code
> system), which doesn't say very much imho.
Well, what's the problem you have with mbcs being the output here? On NT, mbcs
is the encoding that should be used to convert Unicode
In Windows, sys.getfilesystemencoding() returns 'mbcs' (multibyte code system),
which doesn't say very much imho.
So I wrote the function below, which returns the codepage as reported by the
windows chcp command. I noticed that
the function returns 850 (codepage 850) when I run it via the comman