Commits

Anonymous committed e40c60c

Applied patch from Christian Heger for issue #9 - fix for localization.

  • Participants
  • Parent commits 5ef8284

Comments (0)

Files changed (2)

NET 4.0/Source/Rejuicer/Rejuicer/Engine/RejuicerEngine.cs

 using System;
 using System.Collections.Generic;
+using System.Globalization;
 using System.IO;
 using System.Linq;
 using System.Text;
 
             if (mode == Mode.Compact)
             {
-                if (type == ResourceType.Css)
+                var culture = Thread.CurrentThread.CurrentCulture;
+
+                try
                 {
-                    // Perform compaction on files
-                    combined = Yahoo.Yui.Compressor.CssCompressor.Compress(combined);
+                    Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
+
+                    if (type == ResourceType.Css)
+                    {
+                        // Perform compaction on files
+                        combined = Yahoo.Yui.Compressor.CssCompressor.Compress(combined);
+                    }
+                    else
+                    {
+                        combined = Yahoo.Yui.Compressor.JavaScriptCompressor.Compress(combined);
+                    }
                 }
-                else
+                finally
                 {
-                    combined = Yahoo.Yui.Compressor.JavaScriptCompressor.Compress(combined);
+                    Thread.CurrentThread.CurrentCulture = culture;
                 }
             }
 

NET 4.0/Source/Rejuicer/Rejuicer/Rejuicer.csproj

   </ItemGroup>
   <ItemGroup>
     <None Include="packages.config" />
-    <None Include="Rejuicer.nuspec" />
     <Compile Include="Engine\RejuicerHandler.cs" />
-    <None Include="web.config.transform" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <!-- To modify your build process, add your task inside one of the targets below and uncomment it.