Skip to content

Commit fbd4e0c

Browse files
committed
printf: Ignore thousand seperator flag
1 parent adba851 commit fbd4e0c

File tree

1 file changed

+4
-0
lines changed
  • src/uucore/src/lib/features/format

1 file changed

+4
-0
lines changed

src/uucore/src/lib/features/format/spec.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@ impl Flags {
108108
b' ' => flags.space = true,
109109
b'#' => flags.hash = true,
110110
b'0' => flags.zero = true,
111+
b'\'' => {
112+
// the thousands separator is printed with numbers using the ' flag, but
113+
// this is a no-op in the "C" locale.
114+
}
111115
_ => break,
112116
}
113117
*index += 1;

0 commit comments

Comments
 (0)