#1484·hanami

On Windows the default app/assets/images/favicon.ico file is truncated at 154 bytes

Author: pcopissaCreated Dec 3, 2024Updated Dec 4, 2024
  1. Windows 10, Ruby 3.2.0 over MSYS2, Hanami 2.1.1
  2. Generated a new app (hanami new xxx)
  3. Look at the generated image app/assets/images/favicon.ico : Viewers like IrfanView report an error. Indeed the file is only 154 bytes long.
  4. The file in https://github.com/hanami/cli/blob/main/lib/hanami/cli/generators/gem/app/favicon.ico is 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...