Skip to content

[8.2] MOD-9835: Fix unicode_tolower()#6267

Merged
redisearch-backport-pull-request[bot] merged 1 commit into8.2from
backport-6211-to-8.2
Jun 5, 2025
Merged

[8.2] MOD-9835: Fix unicode_tolower()#6267
redisearch-backport-pull-request[bot] merged 1 commit into8.2from
backport-6211-to-8.2

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #6211 to 8.2.

* Bigger buffer and tests

* Fixes

* Fix tag_strtolower to fix test with escaped TAG

* Fix typo

* Fix rm_normalize() and test dialects

* Update src/util/strconv.h

Co-authored-by: meiravgri <[email protected]>

* Enhance unicode_tolower comments for clarity on transformation behavior and buffer allocation

* Fix assertion

* Fix typo

Co-authored-by: Copilot <[email protected]>

* Refactor tag_strtolower to improve length handling and update test names for clarity on UTF-8 behavior

* Add more tests

* Add test comments

* Simplify tests

* Fix typo

* Test with a single multi-byte char

* Add cpp test for unicode_tolower()

* Fix testSpecialUnicodeCase

* update u_buffer allocation for better maintainability

* Add tests lower UTF8 byes exceeding max size

* Fix typo

---------

Co-authored-by: nafraf <[email protected]>
Co-authored-by: nafraf <[email protected]>
Co-authored-by: meiravgri <[email protected]>
Co-authored-by: Copilot <[email protected]>
(cherry picked from commit eb11bfd)
@codecov
Copy link

codecov bot commented Jun 5, 2025

Codecov Report

Attention: Patch coverage is 93.75000% with 1 line in your changes missing coverage. Please review.

Project coverage is 88.83%. Comparing base (fed8743) to head (202d1ea).
Report is 1 commits behind head on 8.2.

Files with missing lines Patch % Lines
src/util/strconv.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.2    #6267      +/-   ##
==========================================
- Coverage   88.89%   88.83%   -0.06%     
==========================================
  Files         237      237              
  Lines       40214    40217       +3     
  Branches     3167     3167              
==========================================
- Hits        35748    35727      -21     
- Misses       4431     4455      +24     
  Partials       35       35              
Flag Coverage Δ
flow 82.77% <93.75%> (-0.18%) ⬇️
unit 45.77% <87.50%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@redisearch-backport-pull-request redisearch-backport-pull-request bot added this pull request to the merge queue Jun 5, 2025
Merged via the queue into 8.2 with commit 6aac73e Jun 5, 2025
19 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-6211-to-8.2 branch June 5, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants