Skip to content

Commit

Permalink
Merge pull request #456 from thomas-tribus/change/change_charset
Browse files Browse the repository at this point in the history
Add function for changing charset with unit test.
  • Loading branch information
Enet4 authored Mar 27, 2024
2 parents 5b03b7e + 9151712 commit 6e020ec
Show file tree
Hide file tree
Showing 5 changed files with 337 additions and 37 deletions.
4 changes: 2 additions & 2 deletions object/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ where
let cs = SpecificCharacterSet::Default;
let mut dset_writer = DataSetWriter::with_ts_cs(to, ts, cs).context(CreatePrinterSnafu)?;

// write object
// We use the default options, because only the inner object knows if something needs to change
dset_writer
.write_sequence((&self.obj).into_tokens())
.context(PrintDataSetSnafu)?;
Expand Down Expand Up @@ -460,7 +460,7 @@ where
let cs = SpecificCharacterSet::Default;
let mut dset_writer = DataSetWriter::with_ts_cs(to, ts, cs).context(CreatePrinterSnafu)?;

// write object
// We use the default options, because only the inner object knows if something needs to change
dset_writer
.write_sequence((&self.obj).into_tokens())
.context(PrintDataSetSnafu)?;
Expand Down
Loading

0 comments on commit 6e020ec

Please sign in to comment.