Compiled latest source code from git / QT5.2 on Mavericks, S9 Auto 0907 Swedish.
This is a follow up on patch in issue #175 and affects Swedish S9 machines.
The previous patch worked fine in QT4.8.5, however there is a change in behaviour in 5.2.
Turns out that Resmed encodes any national characters in the signal labels in UTF-8,
in 5.2 the QFile read operation returns a national character as two separate bytes, which was not the case in 4.8.5.
I'm attaching a patch that works for me, please consider committing unless there is a better solution.
Would it be possible to take a different approach on this, use some signal number possibly combined with firmware version check? There are likely quite a few people affected since only a few languages are currently implemented.
Sorry for missing your patch.. my emails got swamped.
Tested and committed to master branch.
I'm really not sure how to detect the field order of the machine variants. I really wish there was an easier way to do this. If you have any ideas on how to accomplish this I'm all ears.
Thanks for the patch.