pysox icon indicating copy to clipboard operation
pysox copied to clipboard

Fix bitrate parsing for cross-platform environment

Open ktrzcinx opened this issue 4 years ago • 3 comments

Previous version of parsing was unable to get valid content eg. when output ends with '\r' character what is possible in cross platform environment. New parser version is resistant for any line ending. Moreover parser is insensistive for prefix letter size, see bug: https://github.com/rabitt/pysox/issues/119#issuecomment-732651583

Signed-off-by: Karol Trzcinski [email protected]

ktrzcinx avatar May 05 '21 16:05 ktrzcinx

Sounds good, many thanks. I don't understand the logic of elif greek_index, could you please explain?

lostanlen avatar May 06 '21 06:05 lostanlen

I don't understand the logic of elif greek_index, could you please explain?

greek_index it's array of found greek letter indexes in output.upper(), so when any letters has been found then if greek_index will be True, otherwise False (for empty array).

ktrzcinx avatar May 06 '21 08:05 ktrzcinx

( ... a few moment later ...) Hello again @ktrzcinx. With permission from @rabitt I am taking over the maintenance of pysox and prepare a new release (v1.5) on PyPI. I have push access on this repository.

I am keen to merge you PR. Other people have reported a \r bug on Windows: #159

Can you please write a test which triggers this bug on Windows and show that your PR solves it?

lostanlen avatar Jan 05 '24 12:01 lostanlen

( ... a few moment later ...) Hello again @ktrzcinx. With permission from @rabitt I am taking over the maintenance of pysox and prepare a new release (v1.5) on PyPI. I have push access on this repository.

I am keen to merge you PR. Other people have reported a \r bug on Windows: #159

Can you please write a test which triggers this bug on Windows and show that your PR solves it?

test is in #163

nullptr-0 avatar Mar 07 '24 13:03 nullptr-0