Skip to content

[8.0] MOD-9835: Fix unicode_tolower()#6266

Merged
nafraf merged 1 commit into8.0from
backport-6211-to-8.0
Jun 5, 2025
Merged

[8.0] MOD-9835: Fix unicode_tolower()#6266
nafraf merged 1 commit into8.0from
backport-6211-to-8.0

Conversation

@redisearch-backport-pull-request
Copy link
Contributor

Description

Backport of #6211 to 8.0.

* 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.82%. Comparing base (bffebca) to head (ab8fb89).
Report is 1 commits behind head on 8.0.

Files with missing lines Patch % Lines
src/util/strconv.h 90.90% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              8.0    #6266      +/-   ##
==========================================
- Coverage   88.86%   88.82%   -0.04%     
==========================================
  Files         201      201              
  Lines       37278    37281       +3     
==========================================
- Hits        33126    33116      -10     
- Misses       4152     4165      +13     
Flag Coverage Δ
flow 83.28% <93.75%> (-0.15%) ⬇️
unit 42.37% <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
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jun 5, 2025
@nafraf nafraf added this pull request to the merge queue Jun 5, 2025
Merged via the queue into 8.0 with commit 01a35b6 Jun 5, 2025
12 checks passed
@nafraf nafraf deleted the backport-6211-to-8.0 branch June 5, 2025 21:10
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