Commit 9a3d882
piterpunk
Small changes to salt.utils.stringutils.is_binary
- Define `text_characters` only when it will be used
- Adds commentaries about the `text_characters` definition
- Fix a corner case if a utf-8 multibyte character is truncated and
more than 30% of the byte array have values between 1 and 31.1 parent fcd18ff commit 9a3d882
1 file changed
+13
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | 185 | | |
191 | 186 | | |
192 | 187 | | |
| |||
196 | 191 | | |
197 | 192 | | |
198 | 193 | | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
199 | 201 | | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
200 | 205 | | |
201 | | - | |
202 | | - | |
203 | | - | |
| 206 | + | |
| 207 | + | |
204 | 208 | | |
205 | 209 | | |
206 | 210 | | |
207 | | - | |
| 211 | + | |
208 | 212 | | |
209 | 213 | | |
210 | 214 | | |
| |||
0 commit comments