Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assembly info errors with unicode / special characters #125

Open
mxriverlynn opened this issue Jan 13, 2011 · 3 comments
Open

assembly info errors with unicode / special characters #125

mxriverlynn opened this issue Jan 13, 2011 · 3 comments

Comments

@mxriverlynn
Copy link
Owner

from @thecodejunkie, via the google group

The next issue appears to originate from the assembly info rewriting I do.. it outputs

"D:\My Dropbox\Development\Repositories\Nancy\src\Nancy.sln" (Clean;Build targe
t) (1) ->
"D:\My Dropbox\Development\Repositories\Nancy\src\Nancy\Nancy.csproj" (default
target) (4:16) ->
(CoreCompile target) ->
d:\My Dropbox\Development\Repositories\Nancy\src\SharedAssemblyInfo.cs(8,42):
error CS1009: Unrecognized escape sequence [D:\My Dropbox\Development\Reposito
ries\Nancy\src\Nancy\Nancy.csproj]
d:\My Dropbox\Development\Repositories\Nancy\src\SharedAssemblyInfo.cs(8,56):
error CS1009: Unrecognized escape sequence [D:\My Dropbox\Development\Reposito
ries\Nancy\src\Nancy\Nancy.csproj]

0 Warning(s)
2 Error(s)

In the rake file I use

asm.copyright = "copyright © Andreas Håkansson and contributors"

(also tried single quotes) and in the outputted file I get

[assembly: AssemblyCopyright("copyright \251 Andreas H\345kansson and contributors")]

so it's blowing up on \251 and \345

Guessing this is more of a Ruby thing than an Albacore though... thanks!

@PandaWood
Copy link

My first guess is that we might need to do this in about line 34 of assemblyinfo.rb

File.open(assemblyinfo_file, 'w:UTF-8') do |f|

If not, I need to read this (about 4 times to absorb it), which must have the answer somewhere ;-) - http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings

@mxriverlynn
Copy link
Owner Author

there's now a unicode branch that is trying to solve this... but i'm not having much luck, yet.

@mxriverlynn
Copy link
Owner Author

this won't be fixed in v0.2.3 because of compatibility issues with ruby 1.8.6. i've been unable to get my current changes working in ruby 1.8.6... the "w:UTF-8" option blows up. will have to look at this at a later time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants