Skip to content

huncolor: add UTF-8 multi-byte decoding and locale support - #9

Open
Kolgrim33 wants to merge 1 commit into
torvalds:mainfrom
Kolgrim33:utf8-support
Open

huncolor: add UTF-8 multi-byte decoding and locale support#9
Kolgrim33 wants to merge 1 commit into
torvalds:mainfrom
Kolgrim33:utf8-support

Conversation

@Kolgrim33

@Kolgrim33 Kolgrim33 commented Jul 24, 2026

Copy link
Copy Markdown
  • Calls setlocale(LC_ALL, "") on initialization to respect the user's terminal locale.
  • Handles multi-byte character sequences and buffer boundary split recovery using mbrtowc.
  • Uses standard wide-character functions (iswalpha, iswalnum) to accurately detect word boundaries across UTF-8 text without mangling non-ASCII characters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants