jpnurmi / libserialport.dart

Serial Port for Dart
https://pub.dev/packages/libserialport
GNU Lesser General Public License v3.0
86 stars 34 forks source link

Missing extension byte for serial description #13

Closed Coimbra1984 closed 3 years ago

Coimbra1984 commented 3 years ago

I have a serial device with the description "Serielles USB-Gerät (COM5)" (note the letter ä which is an extended ASCII character). When I call

final sp = SerialPort(name);
sp.description

I get the error message [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: FormatException: Missing extension byte (at offset 18)

This error can be fixed with something like https://github.com/jpnurmi/dart_serial_port/pull/12 This might not be the best solution, but it definitely fixes the issue on my machine.