Repository navigation
Rework uucore::quoting_style, add support for locale and clocale - #14856
Conversation
cdc1b7e to
373ee9d
Compare
Merging this PR will regress 2 benchmarks
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
a1153ba to
182ed36
Compare
|
GNU testsuite comparison: |
d21d083 to
13e488b
Compare
8bdaa87 to
b6840b9
Compare
4704879 to
6b806e5
Compare
|
Pinging you again @sylvestre so we can merge this refactor as soon as possible ^^ |
|
Sorry, there's a conflict :| |
Oh again :/ |
Splitting the `Quotes` enum allows to have a specific handling of quotes for shell and c quoting mechanisms. Especially, this prepares the terrain for locale quoting, which is just c quoting with UTF-8 quote characters.
- Replace C_NO_QUOTES with a new variant Escape - Rename QuotingStyle constants
6b806e5 to
385d329
Compare
@cakebaker should be good ! |
Unable to generate the flame graphsThe performance report has correctly been generated, but there was an internal error while generating the flame graphs for this run. We're working on fixing the issue. Feel free to contact us on Discord or at support@codspeed.io if the issue persists. |
385d329 to
5283a80
Compare
This PR centralizes code that was previously duplicated in several utils.
localeandclocalequoting mechanismsfmt::Displayimplementation forQuotingStyle, so un-parsing aQuotingStylegives the string value it was parsed with