Skip to content

[2.6] MOD-9835: Fix unicode_tolower()#6264

Merged
oshadmi merged 5 commits into2.6from
backport-6211-to-2.6
Jun 19, 2025
Merged

[2.6] MOD-9835: Fix unicode_tolower()#6264
oshadmi merged 5 commits into2.6from
backport-6211-to-2.6

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.6.
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 86.05%. Comparing base (e23b5d5) to head (9215ffa).
Report is 1 commits behind head on 2.6.

Files with missing lines Patch % Lines
src/util/strconv.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.6    #6264      +/-   ##
==========================================
- Coverage   86.09%   86.05%   -0.04%     
==========================================
  Files         187      187              
  Lines       32440    32443       +3     
==========================================
- Hits        27928    27918      -10     
- Misses       4512     4525      +13     
Flag Coverage Δ
flow 79.59% <93.75%> (-0.29%) ⬇️
unit 46.16% <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.

@nafraf nafraf marked this pull request as draft June 19, 2025 18:13
auto-merge was automatically disabled June 19, 2025 18:13

Pull request was converted to draft

@nafraf nafraf marked this pull request as ready for review June 19, 2025 18:13
@nafraf nafraf closed this Jun 19, 2025
@nafraf nafraf reopened this Jun 19, 2025
@oshadmi oshadmi added this pull request to the merge queue Jun 19, 2025
Merged via the queue into 2.6 with commit 8ef82aa Jun 19, 2025
26 checks passed
@oshadmi oshadmi deleted the backport-6211-to-2.6 branch June 19, 2025 21:19
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