[issue39380] ftplib uses latin-1 as default encoding

2020-03-22 Thread Sebastian G Pedersen


Sebastian G Pedersen  added the comment:

Yes, I will update the PR before the end of next week.

--

___
Python tracker 
<https://bugs.python.org/issue39380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39380] ftplib uses latin-1 as default encoding

2020-03-15 Thread Sebastian G Pedersen


Sebastian G Pedersen  added the comment:

Thanks again for the engagement.
I am also in favor of adding the encoding to the constructor. However, 
following Giampaolo's comment, that utf-8 is standard and has been for a long 
time (and the RFC dating back to year 1999), I am also in favor of changing the 
default encoding in the same PR. As mentioned in the previous comments, most 
users use ASCII and will not be affected by this anyway - which is probably 
also why this issue hasn't been raised before.
Please let me know your thoughts on this.

--

___
Python tracker 
<https://bugs.python.org/issue39380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39380] ftplib uses latin-1 as default encoding

2020-01-25 Thread Sebastian G Pedersen


Sebastian G Pedersen  added the comment:

Thank you for the feedback.

I will elaborate a little bit on the reasons and thoughts behind the pull 
request:
Since RFC 2640, the industry standard within FTP Clients is UTF-8 (see e.g. 
FileZilla here: https://wiki.filezilla-project.org/Character_Encoding, or 
WinSCP here: https://winscp.net/eng/docs/faq_utf8).

Given this, I believe the majority of the users that have not investigated the 
code wrongly assumes UTF-8 encoding for ftplib as well (as it is now).

I am new to contributing, and not sure, how much deprecation warnings are used 
(I simply followed the previous encoding change on ftplib), so I will change it 
based on the feedback. However, shouldn't it be a FutureWarning, so it will be 
reported by default at initialisation?

--

___
Python tracker 
<https://bugs.python.org/issue39380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen


Change by Sebastian G Pedersen :


--
keywords: +patch
pull_requests: +17443
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/18048

___
Python tracker 
<https://bugs.python.org/issue39380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39380] ftplib uses latin-1 as default encoding

2020-01-18 Thread Sebastian G Pedersen


Change by Sebastian G Pedersen :


--
components: Library (Lib)
nosy: SebastianGPedersen
priority: normal
severity: normal
status: open
title: ftplib uses latin-1 as default encoding
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39380>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com