Skip to content

darwin: Fixed USB string report from port enumerator (some strings may be "normalized")#222

Merged
cmaglie merged 1 commit into
bugst:masterfrom
cmaglie:master
May 25, 2026
Merged

darwin: Fixed USB string report from port enumerator (some strings may be "normalized")#222
cmaglie merged 1 commit into
bugst:masterfrom
cmaglie:master

Conversation

@cmaglie
Copy link
Copy Markdown
Member

@cmaglie cmaglie commented May 25, 2026

The strings in the IORegistry corresponding to keys:

  • USB Serial Number
  • USB Vendor Name
  • USB Product Name

are the "normalized" version of the real USB strings. The "normalization" may convert some characters into another, for example, the dash - is converted into an underscore _.

The original strings are, instead, available at the following properties, respectively:

  • kUSBSerialNumberString
  • kUSBVendorString
  • kUSBProductString

The strings in the IORegistry corresponding to keys:

- USB Serial Number
- USB Vendor Name
- USB Product Name

are the "normalized" version of the real USB strings.
The "normalization" may convert some characters into another,
for example, the dash "-" is converted into an underscore "_".

The original strings are, instead, available at the following
properties respectively:

- kUSBSerialNumberString
- kUSBVendorString
- kUSBProductString
@cmaglie cmaglie merged commit a7b042d into bugst:master May 25, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant