Skip to content

Commit

Permalink
Unicode fix
Browse files Browse the repository at this point in the history
Summary: i-wat-unicode

Reviewed By: bochko

Differential Revision: D59854896

fbshipit-source-id: 009e9054d8641fc733b8b4ee5c60cce23058f0c6
  • Loading branch information
Simon Marlow authored and facebook-github-bot committed Jul 17, 2024
1 parent 1768596 commit 986455d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion glean/rts/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ size_t untrustedChunks(folly::ByteRange range, Chunk&& chunk) {

int k = 0;
while (true) {
UChar c;
UChar32 c;
// NOTE: U8_NEXT returns c<0 on overlong (invalid) points so this doesn't
// transcode (and we don't have to worry about, say, overlong \NUL).
U8_NEXT(p, i, size, c);
Expand Down
2 changes: 1 addition & 1 deletion glean/test/tests/EncodingTest.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ kitchenSink = KitchenSink
[0,0xF6,0x12345,0x65434567,minBound,maxBound]
, kitchenSink_array_of_bool = [True,False,True]
, kitchenSink_array_of_string =
["abcd","","lzdkfhlsadhgl","asfdfs\0fasasfda\0faaf"]
["abcd","","lzdkfhlsadhgl","asfdfs\0fasasfda\0faaf", "𐀀" ]
, kitchenSink_array_of_pred =
[ Glean.Test.Predicate 5432 Nothing
, Glean.Test.Predicate 0x1234567 Nothing ]
Expand Down

0 comments on commit 986455d

Please sign in to comment.