Skip to content

Commit

Permalink
Fixed bugs #1890 and #1905.
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Sep 20, 2012
1 parent 84bf8c2 commit 3a21618
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion sope-appserver/NGObjWeb/SoObjects/SoDefaultRenderer.m
Expand Up @@ -128,7 +128,12 @@ - (NSException *)renderComponent:(WOComponent *)_c inContext:(WOContext *)_ctx{
[self debugWithFormat:
@" as component (use appendToResponse:inContext:)"];
}
[r setHeader:@"text/html" forKey:@"content-type"];

if ([r contentEncoding] == NSUTF8StringEncoding)
[r setHeader:@"text/html; charset=utf-8" forKey:@"content-type"];
else
[r setHeader:@"text/html" forKey:@"content-type"];

[_ctx setPage:_c];
[_ctx enterComponent:_c content:nil];
[_c appendToResponse:r inContext:_ctx];
Expand Down
2 changes: 1 addition & 1 deletion sope-gdl1/GDLAccess/FoundationExt/PrintfFormatScanner.m
Expand Up @@ -33,7 +33,7 @@ - (NSString *)stringWithFormat:(NSString *)format arguments:(va_list)args {

#ifdef __va_copy
// args being NULL breaks heavily on amd64
if (args) {
if (args != NULL) {
__va_copy(va, args);
} else {
return format;
Expand Down

0 comments on commit 3a21618

Please sign in to comment.