At 06/05/05 04:48, Mathias Bauer wrote:
William W. Austin wrote:
> When I tried to do this in OO writer, when I tred to "save as" the
> file as donation_????????_2005-??-??.odt
>
> (automatic extension, of course), it failed. I typed the filename in
> and hit "save"; however the window just sat there until I typed a
> name it liked.
>
> So I tried both OOo-1.1.3 and staroffice7 - same behavior.
>
> Curiously if I save the file to some other name and go to the shell
> and rename it to (for instance) donation_????????_2005-??-??.odt I
> can open it and work with it, save it, etc., just fine.
>
> Is this a bug or is it documented somewhere? And if it *is*
> intentional, why?
OOo uses platform independent code to check wether a file name is
"legal" or not. Unfortunately Windows is more restrictive here, so '?'
is rejected.
I think this can be called a bug, at least it's a necessary enhancement
to allow all characters that are "legal" on that platform.
I speculate that one reason ? is hard to use in a document name is that
it's often, in that context, a search wild card (substitute any single
character for the ? at this specific position in the file name and return
all files fitting the result). Without knowing how OOo implements wild
card searches, it may be that, on saving, OOo is looking for a suitable
character for the substitution, but it has no place to look (in a search,
you at least name an area for looking), and so, not being able to find any
substitutions, OOo cannot proceed with the save. However, on saving
"normally," then renaming the file, then opening (and resaving) the file,
OOo now accepts the ? as the actual character, and not a wild card, because
that was the character that was in the file name when OOo (re)opened
it. If my speculation is accurate, then I'm not sure it's a bug, but an
enhancement would be useful, so long as the wild card aspect of the ? is
not lost in searches.
Eric Hines
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Government programs provide enough to keep you alive, but they don't offer
any hope of living your dreams.
--Grim
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]