On Windows the default app/assets/images/favicon.ico file is truncated at 154 bytes
Author: pcopissaCreated Dec 3, 2024Updated Dec 4, 2024
- Windows 10, Ruby 3.2.0 over MSYS2, Hanami 2.1.1
- Generated a new app (
hanami new xxx) - Look at the generated image
app/assets/images/favicon.ico: Viewers like IrfanView report an error. Indeed the file is only 154 bytes long. - The file in
https://github.com/hanami/cli/blob/main/lib/hanami/cli/generators/gem/app/favicon.icois 7406 bytes long. Byte 155 is 0x1A (^Z) which is the EoF marker on DOS / Windows.
I can only assume there is a text-mode file copy somewhere in the generation process...
Source: hanami/hanami