Skip to content

src: fix ParseEncoding

This PR fixes ParseEncoding.

  1. Remove pointer skip "utf-16LE" was parsed "UNKNOWN", this fixes to "UCS2" "utf-buffer" was parsed "BUFFER", this fixes to "UNKNOWN"

  2. Add +1 check character length to strncmp for checking end of character "utf-16leNOT" was parsed "UCS2", this fixes to "UNKNOWN"

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines

Merge request reports

Loading