Skip to content

[2.8] MOD-9835: Fix unicode_tolower()#6263

Merged
redisearch-backport-pull-request[bot] merged 5 commits into2.8from
backport-6211-to-2.8
Jun 19, 2025
Merged

[2.8] MOD-9835: Fix unicode_tolower()#6263
redisearch-backport-pull-request[bot] merged 5 commits into2.8from
backport-6211-to-2.8

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

@redisearch-backport-pull-request redisearch-backport-pull-request bot commented Jun 5, 2025

Description

Backport of #6211 to 2.8.

Changes:

* 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)
@nafraf nafraf requested a review from oshadmi June 19, 2025 02:32
@codecov
Copy link

codecov bot commented Jun 19, 2025

Codecov Report

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

Project coverage is 87.04%. Comparing base (27ebc69) to head (dc4ae95).
Report is 1 commits behind head on 2.8.

Files with missing lines Patch % Lines
src/util/strconv.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.8    #6263      +/-   ##
==========================================
- Coverage   87.04%   87.04%   -0.01%     
==========================================
  Files         203      203              
  Lines       35834    35837       +3     
==========================================
+ Hits        31192    31193       +1     
- Misses       4642     4644       +2     
Flag Coverage Δ
flow 81.24% <93.75%> (-0.22%) ⬇️
unit 42.64% <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 19, 2025
Merged via the queue into 2.8 with commit 65a9fa6 Jun 19, 2025
12 of 14 checks passed
@redisearch-backport-pull-request redisearch-backport-pull-request bot deleted the backport-6211-to-2.8 branch June 19, 2025 17:45
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.

3 participants