several backported fixes (some are not supported and are not included in tests)

This commit is contained in:
Henry Schimke
2023-01-28 18:33:58 -06:00
parent e4f6fe0daf
commit e024573905
6 changed files with 9 additions and 8 deletions

View File

@@ -106,9 +106,7 @@ impl ECIStringBuilder {
pub fn appendECI(&mut self, value: u32) -> Result<(), Exceptions> {
self.encodeCurrentBytesIfAny();
let character_set_eci = CharacterSetECI::getCharacterSetECIByValue(value)?;
// if (character_set_eci == null) {
// throw FormatException.getFormatInstance();
// }
self.current_charset = CharacterSetECI::getCharset(&character_set_eci);
Ok(())
}