Changeset 28a5ebd in mainline for uspace/app/bdsh/cmds/modules/cat/cat.c
- Timestamp:
- 2020-06-18T15:39:50Z (4 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce52c333
- Parents:
- 4f663f3e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cat/cat.c
r4f663f3e r28a5ebd 154 154 } 155 155 156 static void paged_char( wchar_t c)156 static void paged_char(char32_t c) 157 157 { 158 158 if (last_char_was_newline && number) { … … 160 160 printf("%6u ", lineno); 161 161 } 162 put wchar(c);162 putuchar(c); 163 163 last_char_was_newline = c == '\n'; 164 164 if (paging_enabled) { … … 269 269 paged_char(((count + i + 1) & 0xf) == 0 ? '\n' : ' '); 270 270 } else { 271 wchar_t c = str_decode(buff, &offset, bytes);271 char32_t c = str_decode(buff, &offset, bytes); 272 272 if (c == 0) { 273 273 /* Reached end of string */
Note:
See TracChangeset
for help on using the changeset viewer.