Overview
| Artifact ID: | 0876e82b0467f5b18742ec58e5f33377a1fb4299 |
|---|---|
| Ticket: | 714d37c3aa71d087cc35afcc59edd5667d4048db
Cannot access COM10: and above in Windows |
| User & Date: | twylite on 2014-09-09 14:35:10 |
Changes
- icomment:
"Windows never allows names ending in colon" That is technically incorrect. A colon in a file name indicates access to an alternate NTFS stream within the file, and CreateFile() supports an lpFileName ending in a colon in at least some circumstances. Modifying the filesystem implementation imposes an overhead (albeit small) on all use to simplify an uncommon use case that is already platform specific (i.e. you don't open *nix serial ports using the "COMx:" name) and outdated (the "COMx:" x=1..9 DOS devices are supported in Windows for backwards compatibility). Introducing a Tcl-specific notion of a "COM10:" DOS device sounds wrong to me. The correct approach is to update the Tcl documentation to reflect the correct names for COM devices on Windows, i.e. {\\.\COMx}, rather than referring to the legacy DOS device names "COM1:", etc. When other application (like Putty) show you a "COM10:" they are using {\\.\COM10} internally; that is a UI issue. - login: "twylite"
- mimetype: "text/plain"