18 Aug
2006
18 Aug
'06
4:21 p.m.
I ran across a problem in the convenience extension function. If the filename happens to have the the tilda character in it the function core drops. I discovered the problem when a file named ~trash was inadvertently created in a data directory. After creation of that file the system started core dropping. After much debugging I narrowed the problem to the extension function and the ~trash file. I was able to replicate the problem by std::string filename = "~test.txt"; string ext = extension(filename); Does anyone know a work around or if there are any other gotcha characters in this function. Bob