Message414408
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. |
|
Date |
User |
Action |
Args |
2022-03-03 06:52:43 | eryksun | set | recipients:
+ eryksun, Julian-O |
2022-03-03 06:52:43 | eryksun | set | messageid: <1646290363.52.0.566155038701.issue46905@roundup.psfhosted.org> |
2022-03-03 06:52:43 | eryksun | link | issue46905 messages |
2022-03-03 06:52:43 | eryksun | create | |
|