#musicbrainz-devel

/

      • nikki
        I wonder what counts as open
      • 2011-08-07 21915, 2011

      • nikki
        I can see it in finder, but I'm in one of the parent directories (using the tree view)
      • 2011-08-07 21924, 2011

      • bitmap
        yeah
      • 2011-08-07 21932, 2011

      • bitmap
        if I use the tree view like that, it doesn't count as open
      • 2011-08-07 21907, 2011

      • bitmap
        only when it's the directory in the window title, I guess
      • 2011-08-07 21913, 2011

      • Leftmost
        Wow. That sounds like some FS breakage. :P
      • 2011-08-07 21937, 2011

      • kepstin likes how linux filesystems handle it very simply - you can put any character except '/' or NULL in a filename, and no parsing is done on it whatsoever :/
      • 2011-08-07 21904, 2011

      • bitmap
        oh, it's not that I have the window open. It's whether I drag the file into Picard specifically, or just the folder that contains it
      • 2011-08-07 21934, 2011

      • bitmap
        as long as I don't actually select the file, it triggers the bug
      • 2011-08-07 21949, 2011

      • Mineo
        it gets weirder every minute ;p
      • 2011-08-07 21926, 2011

      • Leftmost
        Hmm. I thought Linux filesystems used NFC to store filenames.
      • 2011-08-07 21946, 2011

      • kepstin
        most linux software uses UTF-8 with NFC, but there's no requirement for that.
      • 2011-08-07 21914, 2011

      • Leftmost
        Well, tend to use.
      • 2011-08-07 21923, 2011

      • kepstin
        the same text encoded with NFC and NFD on linux could create two completely separate files on the FS :)
      • 2011-08-07 21936, 2011

      • Leftmost
        Could, yeah.
      • 2011-08-07 21916, 2011

      • bitmap
        anyway, http://paste.pocoo.org/show/454212/ fixes it for me
      • 2011-08-07 21920, 2011

      • luks
        linux filenames are just series of bytes
      • 2011-08-07 21944, 2011

      • bitmap
        though I wonder if that's ideal if someone is saving to a filesystem other than HFS+ on darwin
      • 2011-08-07 21916, 2011

      • luks
        I guess it wouldn't cause any problems
      • 2011-08-07 21918, 2011

      • kepstin
        bitmap: good test would be a fat32 external drive
      • 2011-08-07 21937, 2011

      • luks
        but if I remember correctly, the HFS normalization is not exactly NFD
      • 2011-08-07 21944, 2011

      • luks
        it has some specifics
      • 2011-08-07 21928, 2011

      • luks
        can't remember what's different though
      • 2011-08-07 21932, 2011

      • Leftmost
        Oy. Reading an article about some guy encouraging using normalized filenames and having FUD and misinformation thrown at him.
      • 2011-08-07 21955, 2011

      • Leftmost
        One guy responds that one of the advantages would be that "a" and "A" would be equivalent. Guy obviously knows nothing about normalized forms. :P
      • 2011-08-07 21910, 2011

      • kepstin
        hmm. wikipedia's reference link for the HFS+ normalization is dead :/
      • 2011-08-07 21936, 2011

      • kepstin
      • 2011-08-07 21932, 2011

      • Leftmost
        Other people saying it would break 40+ years of Unix programs running on Linux. (If they're treating filenames a bytestream, how will normalizing filenames break them?)
      • 2011-08-07 21936, 2011

      • Leftmost
        *as a
      • 2011-08-07 21941, 2011

      • kepstin
        hmm. that doesn't actually say any differences.
      • 2011-08-07 21946, 2011

      • nikki
        I remember testing nfc/nfd on fat32 in osx
      • 2011-08-07 21952, 2011

      • nikki
        but I don't remember what happened :/
      • 2011-08-07 21914, 2011

      • bitmap doesn't have a fat32 drive to test with
      • 2011-08-07 21951, 2011

      • nikki
        no usb sticks?
      • 2011-08-07 21953, 2011

      • kepstin
        most modern Linux applications use UTF-8 encoded NFD, but make no particular requirements for normalization when reading files, and can even read files using other character sets (it'll print junk characters and a note saying that the filename wasn't properly encoded)
      • 2011-08-07 21953, 2011

      • nikki looks for hers
      • 2011-08-07 21929, 2011

      • bitmap
        I have three or four USB sticks but they always dissapear when I need them
      • 2011-08-07 21937, 2011

      • nikki
        kepstin: nfd? it's always been nfc for me
      • 2011-08-07 21950, 2011

      • nikki
        aha, found it
      • 2011-08-07 21953, 2011

      • kepstin
        er, NFC. yes. the names are too confusing :)
      • 2011-08-07 21955, 2011

      • bitmap
        s/dissapear/disappear
      • 2011-08-07 21904, 2011

      • nikki
        I might even still have my test files on there
      • 2011-08-07 21936, 2011

      • nikki
        hehe
      • 2011-08-07 21937, 2011

      • nikki
        I do :D
      • 2011-08-07 21902, 2011

      • Leftmost
        I don't know why, but for some reason I prefer NFC for filename storage. One of those totally insane preferences.
      • 2011-08-07 21954, 2011

      • kepstin
        NFC uses fewer bytes :) save a couple bytes per filename.
      • 2011-08-07 21901, 2011

      • Leftmost
        Heh, another article says that all four normalization forms should be tried when opening a file on Linux.
      • 2011-08-07 21913, 2011

      • Leftmost
        a) That won't work. Who says it's normalized?
      • 2011-08-07 21935, 2011

      • Leftmost
        b) NFKC/NFKD? Really? No.
      • 2011-08-07 21950, 2011

      • kepstin
        it doesn't matter what normalization form something's in when you're just /reading/ it...
      • 2011-08-07 21911, 2011

      • kepstin
        as long as the encoding's correct, just read it and re-normalize it to what you want to use internally.
      • 2011-08-07 21927, 2011

      • Leftmost
        kepstin, the guy clearly doesn't really understand the issue. :P
      • 2011-08-07 21943, 2011

      • Leftmost
        Especially if he's assuming something would be stored in NFKC/NFKD.
      • 2011-08-07 21903, 2011

      • Leftmost immediately writes a letter to the kernel list insisting that all filenames should be stored as NFKD.
      • 2011-08-07 21954, 2011

      • Leftmost
        To hell with equivalence!
      • 2011-08-07 21951, 2011

      • nikki
        on fat32, osx reads nfc filenames, but displays them as nfd. nfd filenames appear if there's no nfc version, but vanish when you try and select them
      • 2011-08-07 21907, 2011

      • nikki
        so you can only use nfd with hfs+ and nfc with fat32
      • 2011-08-07 21901, 2011

      • Leftmost wonders why they decided to use NFD with HFS+...
      • 2011-08-07 21916, 2011

      • nikki
        to be awkward
      • 2011-08-07 21954, 2011

      • Leftmost
        Clearly.
      • 2011-08-07 21924, 2011

      • Leftmost
        Now, someone find me a nice Android notetaking app with both keyboard input and a draw function. :P
      • 2011-08-07 21941, 2011

      • bitmap
        nikki: so OSX lets you write NFD filenames to fat32 but they don't work?
      • 2011-08-07 21905, 2011

      • nikki
        I suspect it automatically converts them to nfc
      • 2011-08-07 21919, 2011

      • nikki
        I only tested creating the files in linux and looking at them in osx
      • 2011-08-07 21922, 2011

      • kepstin
        well, when storing filenames on fat32, it has to reencode them to legacy windows 'codepage' character sets, iirc...
      • 2011-08-07 21924, 2011

      • bitmap
        ah
      • 2011-08-07 21939, 2011

      • kepstin
        so weirdness may result :/
      • 2011-08-07 21911, 2011

      • Leftmost
        I believe that there's a codepage for UTF-8, though.
      • 2011-08-07 21941, 2011

      • nikki
        I mean... I originally used a fat32 external drive with osx and never had any problems with picard
      • 2011-08-07 21925, 2011

      • nikki
        then I used an ext3 formatted drive mounted via a vm and didn't have any problems either (it seemed to automatically convert to nfc there too)
      • 2011-08-07 21920, 2011

      • bitmap
        nikki: if I made an app bundle with that patch applied, would you be able to test saving to the fat32 drive? :)
      • 2011-08-07 21928, 2011

      • nikki
        sure :)
      • 2011-08-07 21937, 2011

      • kepstin
        hmm. so there is, codepage 65001 is UTF-8.
      • 2011-08-07 21926, 2011

      • bitmap
        luks: so do you think that patch is okay to commit?
      • 2011-08-07 21916, 2011

      • luks
        if nikki agrees with it :)
      • 2011-08-07 21959, 2011

      • bitmap
        okay, I'll make this app bundle first
      • 2011-08-07 21942, 2011

      • bitmap
        nikki: http://users.musicbrainz.org/bitmap/MusicBrainz-P… sorry that VMWare was so damn slow >:(
      • 2011-08-07 21953, 2011

      • nikki
        no problem :)
      • 2011-08-07 21922, 2011

      • nikki leads a rather uninteresting, uneventful life and is usually not in a hurry ;)
      • 2011-08-07 21950, 2011

      • Leftmost
        I do not like python for loops. I do not like them, Sam-I-Am.
      • 2011-08-07 21958, 2011

      • bitmap
        huh, what about them do you not like?
      • 2011-08-07 21943, 2011

      • Leftmost
        I don't like that I have to go out of my way to iterate over a list and keep an index on hand.
      • 2011-08-07 21931, 2011

      • bitmap doesn't know where you'd have to do that
      • 2011-08-07 21935, 2011

      • bitmap
        if you're using enumerate() you shouldn't have to keep track of an index
      • 2011-08-07 21941, 2011

      • Leftmost
        I'm matching something based on regex. I want to modify that match based on a function call and then replace it. There may be more than one match.
      • 2011-08-07 21922, 2011

      • Leftmost
        So to iterate over all of the groups in the MatchObject while still being able to get start and end indices, I have to keep track of index.
      • 2011-08-07 21953, 2011

      • bitmap
        I probably shouldn't say anything without seeing the code, then
      • 2011-08-07 21954, 2011

      • nikki
        bitmap: it writes a precomposed character in fat32
      • 2011-08-07 21928, 2011

      • Leftmost
        bitmap, I'll pastebin it in a bit. It's turning out a bit dirtier than I'd like, but I blame that on me not knowing python too well.
      • 2011-08-07 21939, 2011

      • bitmap
        nikki: ah, thanks for testing that!
      • 2011-08-07 21944, 2011

      • bitmap
        I'm glad it does that instead of completely breaking
      • 2011-08-07 21958, 2011

      • nikki
        heh, and finder still shows it as nfd
      • 2011-08-07 21912, 2011

      • voiceinsideyou1 suspects Amazon _might_ be blocking cover art downloads if you haven't recently requested art from a browser on the same IP address :(
      • 2011-08-07 21913, 2011

      • nikki
        I wonder if it *always* provides nfd filenames to programs
      • 2011-08-07 21901, 2011

      • bitmap
        nikki: let me know if you're happy with the patch later too (i.e. no unintended side effects)
      • 2011-08-07 21942, 2011

      • Leftmost
        Oh gdi... I can't do m/foo/g with re.search()?
      • 2011-08-07 21957, 2011

      • luks
        what does m/foo/g do?
      • 2011-08-07 21926, 2011

      • Leftmost
        Match all instances of foo.
      • 2011-08-07 21931, 2011

      • luks
        re.findall?
      • 2011-08-07 21938, 2011

      • Leftmost
        I want the MatchObject, though.
      • 2011-08-07 21944, 2011

      • Leftmost
        finditer, apparently.
      • 2011-08-07 21909, 2011

      • voiceinsideyou1
        more sad times: Error downloading http://musicbrainz.org:80/ws/2/release?release-gr… - server replied: Bad Gateway'
      • 2011-08-07 21902, 2011

      • Leftmost
        I keep trying to use semicolons. :P
      • 2011-08-07 21941, 2011

      • bitmap
        you can if you really want, it's just a waste of space ;)
      • 2011-08-07 21910, 2011

      • ijabz joined the channel
      • 2011-08-07 21942, 2011

      • Leftmost
        Okay, this isn't going to be exactly pretty, but it'll work.
      • 2011-08-07 21914, 2011

      • Leftmost
        Yay. My guess mix case script works. :P
      • 2011-08-07 21931, 2011

      • Leftmost
        So ugly.
      • 2011-08-07 21935, 2011

      • outsidecontext joined the channel
      • 2011-08-07 21933, 2011

      • Leftmost
        Got some tweaking to do, but it'll all work out eventually. :P
      • 2011-08-07 21921, 2011

      • navap joined the channel
      • 2011-08-07 21908, 2011

      • ijabz joined the channel
      • 2011-08-07 21921, 2011

      • Muz joined the channel
      • 2011-08-07 21911, 2011

      • jdamcd joined the channel