Skip to content

Commit 33dd9c6

Browse files
Fixes unicode-query's output for "character width".
1 parent 257d6c4 commit 33dd9c6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.2.1 (unreleased)
2+
3+
- Fixes unicode-query's output for "character width".
4+
15
## 0.2.0 (2022-11-13)
26

37
- Slightly improve performance of grapheme cluster segmentation.

src/tools/unicode-query.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void showCodepointProperties(char32_t codepoint)
112112
cout << "Script : " << unicode::script(codepoint) << '\n';
113113
cout << "General Category : " << properties.general_category << '\n';
114114
cout << "East Asian Width : " << properties.east_asian_width << '\n';
115-
cout << "Character width : " << properties.char_width << '\n';
115+
cout << "Character width : " << unsigned(properties.char_width) << '\n';
116116
cout << "Emoji Segmentation Category : " << properties.emoji_segmentation_category << '\n';
117117
cout << "Grapheme Cluster Break : " << properties.grapheme_cluster_break << '\n';
118118
cout << "\n";

0 commit comments

Comments
 (0)