>> DB names are purely internal to LMDB, so they bear no relation to OS >> filenames and none of this discussion matters to them. > > They're exposed to the programmer and the program's users. Either may > want them on command-line arguments, in config files, etc. It will be > inconvenient if LMDB requires different string handling for non-ASCII > filenames and non-ASCII DB names in such cases. The programmer may > choose to use different string handling but let's try to avoid forcing > him to do so.
A path is always a Unicode string, while a DB name can be an arbitrary binary blob. So I don't think that we can treat them the same way.