[CDRIVER-4017] Extended JSON should emit escape sequences for multi-byte UTF-8 Created: 04/Jun/21  Updated: 10/Feb/23

Status: Backlog
Project: C Driver
Component/s: json
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Jeremy Mikola Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to CDRIVER-4016 Segregate modified and upstream BSON ... Backlog
Epic Link: CDRIVER-2733

 Description   

The "two-byte UTF-8" and "three-byte UTF-8" tests in code.json and string.json fail because libbson emits raw characters instead of "\u" escape sequences. Based on mongodb/libbson@980546a, it seems these tests were modified long ago to account for this difference of behavior.

The current behavior seems like a spec deviation. If this behavior cannot be changed for BC reasons, the upstream tests should be skipped and new tests should be introduced for the modified versions (per CDRIVER-4016).


Generated at Wed Feb 07 21:19:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.