Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. Long filename problems in 2022?

Long filename problems in 2022?

Scheduled Pinned Locked Moved The Weird and The Wonderful
helpquestion
14 Posts 9 Posters 153 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • honey the codewitchH Offline
    honey the codewitchH Offline
    honey the codewitch
    wrote on last edited by
    #1

    I just spent two hours debugging a problem with my handheld NES emulator (ESP32 based) not loading a bunch of the ROMs that I have. When I read certain files I was getting nothing but zeroes back. The file was the right size but it's like all the data was zeroed. I was pulling my hair out because the same copy of the file on my PC read fine. The one on the SD card I copied from the PC did not. Turns out the copy was bad somehow. Nothing wrong with my code. However, it seems like (I think, but I need to test more) that if I copy them with long names intact they don't work. If I rename them to a shorter name first, they work. Either way, everything looks like it works until you open the file.

    To err is human. Fortune favors the monsters.

    M E 2 Replies Last reply
    0
    • honey the codewitchH honey the codewitch

      I just spent two hours debugging a problem with my handheld NES emulator (ESP32 based) not loading a bunch of the ROMs that I have. When I read certain files I was getting nothing but zeroes back. The file was the right size but it's like all the data was zeroed. I was pulling my hair out because the same copy of the file on my PC read fine. The one on the SD card I copied from the PC did not. Turns out the copy was bad somehow. Nothing wrong with my code. However, it seems like (I think, but I need to test more) that if I copy them with long names intact they don't work. If I rename them to a shorter name first, they work. Either way, everything looks like it works until you open the file.

      To err is human. Fortune favors the monsters.

      M Offline
      M Offline
      MarkTJohnson
      wrote on last edited by
      #2

      So the doohickey uses the old Windows 95 file scheme? Where your could "name" your file something long but in reality it made an 8.3 name for the file in the background?

      I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

      honey the codewitchH J 2 Replies Last reply
      0
      • M MarkTJohnson

        So the doohickey uses the old Windows 95 file scheme? Where your could "name" your file something long but in reality it made an 8.3 name for the file in the background?

        I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

        honey the codewitchH Offline
        honey the codewitchH Offline
        honey the codewitch
        wrote on last edited by
        #3

        I don't think so. This seems to all be on my PC end, and I'm on Win11. I need to investigate this more today before I can be sure about any of this. I've replicated the problem a couple of times but not methodically.

        To err is human. Fortune favors the monsters.

        J 1 Reply Last reply
        0
        • honey the codewitchH honey the codewitch

          I don't think so. This seems to all be on my PC end, and I'm on Win11. I need to investigate this more today before I can be sure about any of this. I've replicated the problem a couple of times but not methodically.

          To err is human. Fortune favors the monsters.

          J Offline
          J Offline
          Jorgen Andersson
          wrote on last edited by
          #4

          How long filenames are we talking about? More than 260 characters?

          Wrong is evil and must be defeated. - Jeff Ello

          honey the codewitchH 1 Reply Last reply
          0
          • J Jorgen Andersson

            How long filenames are we talking about? More than 260 characters?

            Wrong is evil and must be defeated. - Jeff Ello

            honey the codewitchH Offline
            honey the codewitchH Offline
            honey the codewitch
            wrote on last edited by
            #5

            Oh gosh no. Maybe 20 characters, with spaces. Stuff like "Bionic Commando (U).nes"

            To err is human. Fortune favors the monsters.

            N E 2 Replies Last reply
            0
            • honey the codewitchH honey the codewitch

              Oh gosh no. Maybe 20 characters, with spaces. Stuff like "Bionic Commando (U).nes"

              To err is human. Fortune favors the monsters.

              N Offline
              N Offline
              Nelek
              wrote on last edited by
              #6

              Maybe the empty spaces?

              M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

              honey the codewitchH T 2 Replies Last reply
              0
              • N Nelek

                Maybe the empty spaces?

                M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                honey the codewitchH Offline
                honey the codewitchH Offline
                honey the codewitch
                wrote on last edited by
                #7

                Shoot. Work distracted me from troubleshooting what the root issue was and forgot all about it. I should dig into that. :)

                To err is human. Fortune favors the monsters.

                N G 2 Replies Last reply
                0
                • N Nelek

                  Maybe the empty spaces?

                  M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                  T Offline
                  T Offline
                  trønderen
                  wrote on last edited by
                  #8

                  Any software that has ever been in contact with *nix or *nix developers, even if "ported" to other OSes, is likely to have problems with spaces in filenames. Also be prepared for non-*nix path separators and non-7bitASCII being a potential source of trouble. Even after "porting", expect issues with letter casing.

                  N 1 Reply Last reply
                  0
                  • T trønderen

                    Any software that has ever been in contact with *nix or *nix developers, even if "ported" to other OSes, is likely to have problems with spaces in filenames. Also be prepared for non-*nix path separators and non-7bitASCII being a potential source of trouble. Even after "porting", expect issues with letter casing.

                    N Offline
                    N Offline
                    Nelek
                    wrote on last edited by
                    #9

                    line breaks, return carriage and end of file can give / have given some headaches too

                    M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                    1 Reply Last reply
                    0
                    • honey the codewitchH honey the codewitch

                      Shoot. Work distracted me from troubleshooting what the root issue was and forgot all about it. I should dig into that. :)

                      To err is human. Fortune favors the monsters.

                      N Offline
                      N Offline
                      Nelek
                      wrote on last edited by
                      #10

                      hope you find it. :)

                      M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.

                      1 Reply Last reply
                      0
                      • honey the codewitchH honey the codewitch

                        I just spent two hours debugging a problem with my handheld NES emulator (ESP32 based) not loading a bunch of the ROMs that I have. When I read certain files I was getting nothing but zeroes back. The file was the right size but it's like all the data was zeroed. I was pulling my hair out because the same copy of the file on my PC read fine. The one on the SD card I copied from the PC did not. Turns out the copy was bad somehow. Nothing wrong with my code. However, it seems like (I think, but I need to test more) that if I copy them with long names intact they don't work. If I rename them to a shorter name first, they work. Either way, everything looks like it works until you open the file.

                        To err is human. Fortune favors the monsters.

                        E Offline
                        E Offline
                        Emilie Kelleher
                        wrote on last edited by
                        #11

                        It's me.

                        1 Reply Last reply
                        0
                        • honey the codewitchH honey the codewitch

                          Shoot. Work distracted me from troubleshooting what the root issue was and forgot all about it. I should dig into that. :)

                          To err is human. Fortune favors the monsters.

                          G Offline
                          G Offline
                          Gary R Wheeler
                          wrote on last edited by
                          #12

                          For what it's worth, I've seen FAT32 implementations in the wild that didn't handle space characters in filenames correctly or didn't like complete file paths longer than a value much less than Windows' 260 characters. For example, the sound system in my car let you plug a FAT32 Flash drive in and it would play any MP3's it found. There were some limitations however. You could only have 99 files per folder, and 99 folders hanging from the root. File path length had to be <16 characters.

                          Software Zen: delete this;

                          1 Reply Last reply
                          0
                          • M MarkTJohnson

                            So the doohickey uses the old Windows 95 file scheme? Where your could "name" your file something long but in reality it made an 8.3 name for the file in the background?

                            I’ve given up trying to be calm. However, I am open to feeling slightly less agitated.

                            J Offline
                            J Offline
                            JohnDG52
                            wrote on last edited by
                            #13

                            Win95? 8.3 format goes back a loooong time before windows was dreamed of.

                            1 Reply Last reply
                            0
                            • honey the codewitchH honey the codewitch

                              Oh gosh no. Maybe 20 characters, with spaces. Stuff like "Bionic Commando (U).nes"

                              To err is human. Fortune favors the monsters.

                              E Offline
                              E Offline
                              englebart
                              wrote on last edited by
                              #14

                              Bionic Commando??? That was a great game! I had to hack my C64 version to give myself 255 lives to beat it! Or else I found the logic that subtracted a life and changed it to NOOPs. A little fuzzy now, but I was able to finish it.

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups