> On 11 Mai, 15:03, Marty Alchin <gulop...@gmail.com> wrote: >> If you're using the filename to store it somewhere else, typically for >> denormalization, it'd be better to do that post-save, since then you >> know the record actually got saved in the database. Otherwise, you >> might be trying to access the content of the file, which would be >> better using the direct file access, which can often save yourself a >> round-trip to the storage backend (which can be a big win for paid >> storage solutions, like S3). > I was reading about #8593 today and I think this adds a new layer of > complexity to the problem. Some operating systems perform filename > normalization on their own. While the case covered in the bug only > affects Windows machines and is a weird behavior in the Python ntpath > module instead of the Kernel, it could cause some troubles. > > On an OS X machine the operating system will normalize the filename to > some sort of unicode normalization form. (The exact one depends on > the version of OS X you're running). This translation happens in a > way that you will not notice it from inside your application. The > normalization however happens in the IO system and not the HSF file > system. Now imagine you're writing to an NFS share that is also > accessed from linux. If they two would use the same database as well, > the Linux version would not be able to locate the file on the > filesystem because the entry in the database would be only valid if > the OS does the normalization again when opening the file.
Hi Armin, Also on OS X you can set if filename is case-sensitive on per-volume basis, when formatting, and usually it's case-insensitive. windows is always case insensitive, linux is usually case-sensitive. Please see http://en.wikipedia.org/wiki/Filename for more information on this. This does matter when one filename has the same letters as another but some letters have different case. This also can cause troubles when moving existing DB and files from one filesystem to another. -- Best regards, Yuri V. Baburov, ICQ# 99934676, Skype: yuri.baburov, MSN: bu...@live.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-developers?hl=en -~----------~----~----~----~------~----~------~--~---