dcmjs 0.50.2 → 0.50.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/dcmjs.es.js CHANGED
@@ -14857,7 +14857,7 @@ var AsyncDicomReader = /*#__PURE__*/function () {
14857
14857
  }
14858
14858
  }
14859
14859
  if (!(tagInfo.tag === TagHex.SpecificCharacterSet)) {
14860
- _context11.next = 21;
14860
+ _context11.next = 22;
14861
14861
  break;
14862
14862
  }
14863
14863
  if (!(values.length > 0)) {
@@ -14885,11 +14885,19 @@ var AsyncDicomReader = /*#__PURE__*/function () {
14885
14885
  case 20:
14886
14886
  throw Error("Unsupported character set: ".concat(coding));
14887
14887
  case 21:
14888
+ // Normalize to UTF-8 in the stored value, matching the synchronous
14889
+ // DicomMessage path which always rewrites SpecificCharacterSet to
14890
+ // ISO_IR 192 after decoding (dcmjs always re-encodes output as UTF-8).
14891
+ //
14892
+ // TODO: the original charset value should also be preserved:
14893
+ // it is needed for bulk data decoding.
14894
+ values = ["ISO_IR 192"];
14895
+ case 22:
14888
14896
  values.forEach(function (value) {
14889
14897
  return listener.value(value);
14890
14898
  });
14891
14899
  return _context11.abrupt("return", values);
14892
- case 23:
14900
+ case 24:
14893
14901
  case "end":
14894
14902
  return _context11.stop();
14895
14903
  }