create new tag
, view all tags

Proposed for CairoRelease

I am running my TWiki's under WinNt and Windows95, and have noticed a subtle problem caused by the differences between Filesystems.

On UNIX, this page and a page named FilesystemNameClash are different pages. I think this is bad.. Under Windows the Case differences are ignored, resulting in any correct spelling of a topic name going to that topic.


some of my users complained that when they typed in a topic name with the wrong case, it was displayed using the wrong case.. so i fixed that..

I think it would be worth considering if there shouldn't be a case insensitive search for a topic for all platforms..

code added to wiki.pm
#NT ignores case for filenames, but if you goto a page with the wrong case the title text looks weird
sub fixTopicCaps
    my( $web, $name ) = @_;
   opendir(DIR, "$dataDir/$web");
   my @files = readdir(DIR);
   @files = map { /(.*)\.txt$/; $_ = $1; } @files;
   my ($test);
   foreach (@files)
      if ( /^\Q$name\E$/i )
         $name = $_;

   return $name;

code added to view.pl
    my $topicExists = &wiki::topicExists( $webName, $topic );
    if( $topicExists ) {
   $maxrev = &wiki::getRevisionNumber( $topic );
        $maxrev =~ s/1\.//go;  # cut major
   if( $rev ) {
            $rev =~ s/1\.//go;  # cut major
       if( $rev < 1 )       { $rev = 1; }
            if( $rev > $maxrev ) { $rev = $maxrev; }
       $text= &wiki::readVersion( $topic, "$rev" );
            $extra .= "r$rev";
   } else {
       $text= &wiki::readTopic( $topic );
       $rev= $maxrev;
       $topic = &wiki::fixTopicCaps($webName, $topic);   # <===========added here
    } else {
   $rev = 1;
   if( &wiki::isWikiName( $topic ) ) {
       $text= &wiki::readTemplate( "notext" );
   } else {
       $text= &wiki::readTemplate( "notwiki" );
        $extra .= " (not exist)";

-- SvenDowideit - 17 Jan 2001

I agree, it is important that this bug is fixed for WindowsPlatforms.

-- MartinCleaver - 26 Jun 2001

It would also be useful for implementing BumpyWordsForDocumentWriting

-- MartinCleaver - 26 Jun 2001

This would be useful - very easy to use the wrong case, and the Windows semantics are easier for users than Unix (although I've used Unix a long time...) Might want to warn Unix wiki administrators about this feature, although anyone who creates topics that differ only in case will get confused anyway... Ideally this would be checked for when creating a topic as well, as a warning.

-- RichardDonkin - 27 Jun 2001

Interesting Patch.

-- GrantBow - 19 Jan 2003

I just notices there is a similar problem on windows with the WebName - if you have a web called QMS, and you ask for Qms it shows you the topic, but is very confusing later. a variation on my patch should allow the wrong case to be used in the URL, but these will then be corrected .

basically I think the twiki should be forgiving of case typo's but not stuff itself up.

-- SvenDowideit - 21 Apr 2004

This has been left hanging; there is no real consensus on a need to change, so unless someone picks it up and runs with it nothing will be done. Unassigning from DakarRelease for that reason.

Category: TWikiPatches
TopicClassification FeatureRequest
TopicSummary Under Windows topic name case differences are ignored in filenames
CurrentState UnderInvestigation
OutstandingIssues No consensus on whether this needs to be fixed. CoreTeam please set a priority.




Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r12 - 2005-02-15 - SamHasler
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.