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 eryksun
Recipients Julian-O, eryksun
Date 2022-03-03.06:52:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646290363.52.0.566155038701.issue46905@roundup.psfhosted.org>
In-reply-to
Content
PlaySound() is implemented by the C function winsound_PlaySound_impl() in "PC/winsound.c". To support pathlike objects, it could use `soundname = PyOS_FSPath(sound)`, and require soundname to be a Unicode string via PyUnicode_Check(soundname). Or it could more generically support any buffer or pathlike object via PyUnicode_FSDecoder(sound, &soundname). This call decodes byte strings using the filesystem encoding, which is UTF-8 unless legacy ANSI mode is enabled.
History
Date User Action Args
2022-03-03 06:52:43eryksunsetrecipients: + eryksun, Julian-O
2022-03-03 06:52:43eryksunsetmessageid: <1646290363.52.0.566155038701.issue46905@roundup.psfhosted.org>
2022-03-03 06:52:43eryksunlinkissue46905 messages
2022-03-03 06:52:43eryksuncreate