Conversation
Adds initial support for a Basic Multilingual Plane (a.k.a. UCS-2) string type.
|
It looks good, the one change I'd like to introduce would be to avoid silently accepting chars that encode over more than 2 bytes (which this currently does). I'd prefer that to be a legitimate choice by the consumer of the API if possible (hence the |
|
@baloo I'm not terribly well versed in UCS-2/UTF-16. Is the issue there unpaired surrogates or something different? Would composing |
|
Looks good to me (no opinion re: encoding to more than two bytes). I dropped it into the work-in-progress P12 code and it worked fine for the (simple) friendly name attributes in that set. |
|
@tarcieri I thought there were issues with the back and forth between |
|
@baloo I am a little curious if the output will be something other than valid BMP, e.g. codepoints greater than 65535. I suppose I could still check for that? |
Ensure all codepoints fit in `u16`.
Added - `bytes` feature ([RustCrypto#1156]) - impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` ([RustCrypto#1188]) - `BmpString` ([RustCrypto#1164]) Changed - no-panic cleanup ([RustCrypto#1169]) - Bump `der_derive` dependency to v0.7.2 ([RustCrypto#1192]) [RustCrypto#1156]: RustCrypto#1156 [RustCrypto#1164]: RustCrypto#1164 [RustCrypto#1169]: RustCrypto#1169 [RustCrypto#1188]: RustCrypto#1188 [RustCrypto#1192]: RustCrypto#1192 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Added - `bytes` feature ([#1156]) - impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` ([#1188]) - `BmpString` ([#1164]) Changed - no-panic cleanup ([#1169]) - Bump `der_derive` dependency to v0.7.2 ([#1192]) [#1156]: #1156 [#1164]: #1164 [#1169]: #1169 [#1188]: #1188 [#1192]: #1192 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Added - `bytes` feature ([#1156]) - impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` ([#1188]) - `BmpString` ([#1164]) Changed - no-panic cleanup ([#1169]) - Bump `der_derive` dependency to v0.7.2 ([#1192]) [#1156]: RustCrypto/formats#1156 [#1164]: RustCrypto/formats#1164 [#1169]: RustCrypto/formats#1169 [#1188]: RustCrypto/formats#1188 [#1192]: RustCrypto/formats#1192 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Added - `bytes` feature ([#1156]) - impl `RefToOwned`/`OwnedToRef` for `&[u8]`/`Box<[u8]>` ([#1188]) - `BmpString` ([#1164]) Changed - no-panic cleanup ([#1169]) - Bump `der_derive` dependency to v0.7.2 ([#1192]) [#1156]: RustCrypto/formats#1156 [#1164]: RustCrypto/formats#1164 [#1169]: RustCrypto/formats#1169 [#1188]: RustCrypto/formats#1188 [#1192]: RustCrypto/formats#1192 Signed-off-by: Arthur Gautier <baloo@superbaloo.net>
Adds initial support for a Basic Multilingual Plane (a.k.a. UCS-2) string type.