[pmwiki-users] Re: Can't save some Chinese wiki word page.
Patrick R. Michaud
pmichaud at pobox.com
Thu Sep 29 01:02:50 CDT 2005
Okay, then it'll probably be
"$pagefile_new_".time()
or something like that.
Out of curiosity, do either of the following work...?
"new-$pagefile"
"new,$pagefile"
Pm
On Thu, Sep 29, 2005 at 01:05:41PM +0800, Elias Soong wrote:
> If the name include (-), it doesn't work.. the same as (=)(,)(.)
>
> Patrick R. Michaud wrote:
> >On Thu, Sep 29, 2005 at 11:30:57AM +0800, Elias Soong wrote:
> >
> >>weijiang suggest using $page['host'].$page['time'] as the temporary file
> >>name.
> >
> >
> >How about something like...
> >
> > "$pagefile-new-".time()
> >
> >Does that work?
> >
> >
> >>Patrick R. Michaud wrote:
> >>
> >>>On Thu, Sep 29, 2005 at 12:56:57AM +0800, Elias Soong wrote:
> >>>
> >>>
> >>>>Warning: fopen(wiki.d/Main.??,new) [function.fopen]: failed to create
> >>>>stream: Invalid argument in D:\www\pmwiki2\pmwiki.php on line 578
> >>>>[...]
> >>>>This only happen on PHP at windows platform, and may only for Chinese
> >>>>windows platform. On linux, all Chinese word is ok. So we think it is a
> >>>>bug for PHP.
> >>>
> >>>
> >>>Someone reported a problem like this sometime before, although I
> >>>didn't have the full platform details. Weird.
> >>>
> >>>
> >>>
> >>>>A work a round is, at the line 578, 590 and 592, change "$pagename,new"
> >>>>to be "$pagename"."_new", all words will be ok. If we change it to be
> >>>>"$pagename".",new" or "$pagename".".new", it still the same problem.
> >>>
> >>>
> >>>Underscore is a little dangerous, as some sites choose to allow
> >>>underscores in page names. How about a different character, such
> >>>as an equals sign (=)? Does that work?
> >>>
> >>>
> >>>
> >>>>Maybe we should change the temporary file naming method for this
> >>>>problem. Thanks a lot.
> >>>
> >>>
> >>>This can be done as long as we can find something that works and
> >>>doesn't collide with likely names.
> >>>
> >>>Pm
> >>
> >>
> >>_______________________________________________
> >>pmwiki-users mailing list
> >>pmwiki-users at pmichaud.com
> >>http://host.pmichaud.com/mailman/listinfo/pmwiki-users
> >>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://host.pmichaud.com/mailman/listinfo/pmwiki-users
>
More information about the pmwiki-users
mailing list