[issue34330] The decode_header function does not always work correctly.

2018-08-04 Thread Karthikeyan Singaravelan


Change by Karthikeyan Singaravelan :


--
nosy: +xtreak

___
Python tracker 

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



[issue34330] The decode_header function does not always work correctly.

2018-08-03 Thread Влад К

New submission from Влад К :

The decode_header function does not always work correctly.

me@Serv:~$ python3
Python 3.6.5 (default, Apr  1 2018, 05:46:30)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.header import decode_header
>>> s = 
>>> '=?windows-1251?B?zeDp5Oj46ujtINDu7ODtIMLr4OTo7Ojw7uLo9w==?=\r\n\t'
>>> decode_header(s)
[(b'\xcd\xe0\xe9\xe4\xe8\xf8\xea\xe8\xed \xd0\xee\xec\xe0\xed 
\xc2\xeb\xe0\xe4\xe8\xec\xe8\xf0\xee\xe2\xe8\xf7', 'windows 

-1251'), (b'', None)]
>>> exit()

me@Serv:~$ python
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34)
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from email.header import decode_header
>>> s = 
>>> '=?windows-1251?B?zeDp5Oj46ujtINDu7ODtIMLr4OTo7Ojw7uLo9w==?=\r\n\t'
>>> decode_header(s)
[('=?windows-1251?B?zeDp5Oj46ujtINDu7ODtIMLr4OTo7Ojw7uLo9w==?=\r\n\t',
 None)]
>>> exit()

--
components: email
messages: 323056
nosy: barry, r.david.murray, Влад К2
priority: normal
severity: normal
status: open
title: The decode_header function does not always work correctly.
versions: Python 2.7

___
Python tracker 

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