Author: espectador
Date: Wed Apr  2 08:23:08 2014
New Revision: 37780

URL: http://svn.gna.org/viewcvs/gnustep?rev=37780&view=rev
Log:
Remove two last commits.

Modified:
    apps/projectcenter/trunk/ChangeLog
    apps/projectcenter/trunk/Framework/PCFileCreator.m

Modified: apps/projectcenter/trunk/ChangeLog
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/ChangeLog?rev=37780&r1=37779&r2=37780&view=diff
==============================================================================
--- apps/projectcenter/trunk/ChangeLog  (original)
+++ apps/projectcenter/trunk/ChangeLog  Wed Apr  2 08:23:08 2014
@@ -1,3 +1,8 @@
+2014-04-02 German Arias <[email protected]>
+
+       * Framework/PCFileCreator.m: Removed two last commits. There is
+       something wrong with these.
+
 2014-03-30 German Arias <[email protected]>
 
        * Framework/PCFileCreator.m: Fix last change to ensure all string in the

Modified: apps/projectcenter/trunk/Framework/PCFileCreator.m
URL: 
http://svn.gna.org/viewcvs/gnustep/apps/projectcenter/trunk/Framework/PCFileCreator.m?rev=37780&r1=37779&r2=37780&view=diff
==============================================================================
--- apps/projectcenter/trunk/Framework/PCFileCreator.m  (original)
+++ apps/projectcenter/trunk/Framework/PCFileCreator.m  Wed Apr  2 08:23:08 2014
@@ -278,13 +278,7 @@
   NSString *fn = [aFile stringByDeletingPathExtension];
   NSRange  subRange;
 
-#ifdef WIN32
-  file = [[NSMutableString stringWithContentsOfFile: newFile
-                                           encoding: NSUTF8StringEncoding
-                                              error: NULL] retain];
-#else
   file = [[NSMutableString stringWithContentsOfFile:newFile] retain];
-#endif
 
   while ((subRange = [file rangeOfString:@"$FULLFILENAME$"]).length)
     {
@@ -303,26 +297,12 @@
 
   while ((subRange = [file rangeOfString:@"$USERNAME$"]).length)
     {
-#ifdef WIN32
-      // Be sure to use an UTF8 string.
-      [file replaceCharactersInRange: subRange
-                         withString: [NSString stringWithCString:
-                                                 [NSUserName() UTF8String]]];
-#else
       [file replaceCharactersInRange:subRange withString:NSUserName()];
-#endif
     }
     
   while ((subRange = [file rangeOfString:@"$FULLUSERNAME$"]).length)
     {
-#ifdef WIN32
-      // Be sure to use an UTF8 string.
-      [file replaceCharactersInRange: subRange
-                         withString: [NSString stringWithCString:
-                                               [NSFullUserName() UTF8String]]];
-#else
       [file replaceCharactersInRange:subRange withString:NSFullUserName()];
-#endif
     }
 
   while ((subRange = [file rangeOfString:@"$PROJECTNAME$"]).length)
@@ -341,14 +321,7 @@
        withString:[[NSNumber numberWithInt:year] stringValue]];
     }
 
-#ifdef WIN32
-  [file writeToFile: newFile 
-        atomically: YES
-          encoding: NSUTF8StringEncoding
-             error: NULL];
-#else
   [file writeToFile:newFile atomically:YES];
-#endif
 
 
   [file release];


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to