Commit fded129
committed
Fix #21317: Replace colons with underscores in window filenames for Windows compatibility
The default FilenamePolicy uses Instant.toString() for Beam Windows, which
produces ISO-8601 format (e.g., 2021-12-31T23:00:00.000Z) containing colons.
Colons are illegal characters in Windows file paths, causing
InvalidPathException when using TextIO.write().withWindowedWrites() on Windows.
This fix replaces colons with underscores ONLY on Windows to ensure
cross-platform compatibility without breaking existing filenames on other OSes.
Fixes #213171 parent e6fcdd7 commit fded129
1 file changed
Lines changed: 9 additions & 1 deletion
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
357 | 365 | | |
358 | 366 | | |
359 | 367 | | |
| |||
0 commit comments