[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2021-05-05 Thread Hasan


Change by Hasan :


Removed file: https://bugs.python.org/file50019/test_plistlib_plutil.py

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2021-05-05 Thread Hasan


Change by Hasan :


Added file: https://bugs.python.org/file50019/test_plistlib_plutil.py

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

It doesn't, both 0b101 and 0o101 get rejected as syntax errors.

--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Does plutil support octal (0o) and binary (0b) literals?

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Ronald Oussoren


Change by Ronald Oussoren :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed
type:  -> behavior

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset d1eb75585ef4c108732ec815cdc0adef087b1c3e by Miss Skeleton (bot) 
in branch '3.8':
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files 
(GH-22764) (GH-22807)
https://github.com/python/cpython/commit/d1eb75585ef4c108732ec815cdc0adef087b1c3e


--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 3fc7080220b8dd2e1b067b3224879133d895ea80 by Miss Skeleton (bot) 
in branch '3.9':
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files 
(GH-22764) (GH-22806)
https://github.com/python/cpython/commit/3fc7080220b8dd2e1b067b3224879133d895ea80


--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread miss-islington


Change by miss-islington :


--
pull_requests: +21765
pull_request: https://github.com/python/cpython/pull/22807

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread Ronald Oussoren


Ronald Oussoren  added the comment:


New changeset 3185267400be853404f22a1e06bb9fe1210735c7 by Ronald Oussoren in 
branch 'master':
bpo-41491: plistlib: accept hexadecimal integer values in xml plist files 
(GH-22764)
https://github.com/python/cpython/commit/3185267400be853404f22a1e06bb9fe1210735c7


--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-20 Thread miss-islington


Change by miss-islington :


--
nosy: +miss-islington
nosy_count: 4.0 -> 5.0
pull_requests: +21764
pull_request: https://github.com/python/cpython/pull/22806

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren


Change by Ronald Oussoren :


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

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Given this plist:


http://www.apple.com/DTDs/PropertyList-1.0.dtd;>


hex

0x010c

oct

0123





``plutil -convert json`` prints:

{"hex":[16777228],"oct":[123]}

That is, hexadecimal values are detected and parsed, but "0" as a prefix for 
octal values (as in C) is not.

--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-10-19 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

This file is still present on the latest version of macOS 11 beta on ARM64, 
with this integer value.  Furthermore plutil will happily read this file.

I'm in favour of changing plistlib to parse files like this.

--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-08-06 Thread Ronald Oussoren


Ronald Oussoren  added the comment:

Please also report this at apple using the feedback assistent.

--

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-08-05 Thread Jeffrey Kintscher


Change by Jeffrey Kintscher :


--
nosy: +Jeffrey.Kintscher

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-08-05 Thread Wesley Whetstone


Change by Wesley Whetstone :


--
components: +macOS
nosy: +ned.deily, ronaldoussoren

___
Python tracker 

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



[issue41491] plistlib can't load macOS BigSur system LaunchAgent

2020-08-05 Thread Wesley Whetstone


New submission from Wesley Whetstone :

When attempting to load the new LaunchAgent at 
`/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_arm64.plist` plistlib 
Raises a ValueError of 

  File "/opt/salt/lib/python3.7/plistlib.py", line 272, in handle_end_element
handler()
  File "/opt/salt/lib/python3.7/plistlib.py", line 332, in end_integer
self.add_object(int(self.get_data()))
ValueError: invalid literal for int() with base 10: '0x010c'

on


0x010c


Technically this violates the spec at 
http://www.apple.com/DTDs/PropertyList-1.0.dtd. Figured it was worth reporting.

Full Plist is attached.

--
files: com.apple.cvmsCompAgent_arm64.plist
messages: 374908
nosy: jckwhet
priority: normal
severity: normal
status: open
title: plistlib can't load macOS BigSur system LaunchAgent
Added file: 
https://bugs.python.org/file49371/com.apple.cvmsCompAgent_arm64.plist

___
Python tracker 

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