This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients lars.gustaebel, lemburg, loewis, vstinner
Date 2010-06-10.21:14:09
SpamBayes Score 0.0037560652
Marked as misclassified No
Message-id <1276204451.08.0.740302215732.issue8784@psf.upfronthosting.co.za>
In-reply-to
Content
> 2. Create backups for personal use.

What? Really? I'm sure that all Windows users will use ZIP or maybe RAR, but never the geek choice.

> 1. Download tar archives from a webpage (when no zip is supplied) for viewing or extracting.

Tarballs come from UNIX/BSD world which use UTF-8 by default since some years ago.

> 3. Create source archives from a project for unix users who hate zipfiles.

In this case, UTF-8 is also better.

--

Did I mentionned that 7-zip is only able to create TAR archive? I mean uncompressed archive. Who will use that? (not me ;-))

WinRAR is unable to create tarballs, even (uncompressed) .tar archive.

--

If the maintainer of the tarfile module agrees that UTF-8 is the best choice, I will commit my initial patch. I would prefer to commit tarfile_windows_utf8.patch because it changes 4 lines, whereas tarfile_mbcs_errors.patch changes... much more code :-)

tarfile_windows_utf8.patch is not complete: the documentation should also be updated:

.. data:: ENCODING

   The default character encoding i.e. the value from either
   :func:`sys.getfilesystemencoding` or :func:`sys.getdefaultencoding`.

=>

.. data:: ENCODING

   The default character encoding: ``'utf-8'`` on Windows,
   :func:`sys.getfilesystemencoding` otherwise.
History
Date User Action Args
2010-06-10 21:14:11vstinnersetrecipients: + vstinner, lemburg, loewis, lars.gustaebel
2010-06-10 21:14:11vstinnersetmessageid: <1276204451.08.0.740302215732.issue8784@psf.upfronthosting.co.za>
2010-06-10 21:14:10vstinnerlinkissue8784 messages
2010-06-10 21:14:09vstinnercreate