Nginx-ru mailing list archive (nginx-ru@sysoev.ru)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
utf8 in ngx_http_request_s
- To: nginx-ru@xxxxxxxxx
- Subject: utf8 in ngx_http_request_s
- From: dimkalinux <dimkalinux@xxxxxxxxx>
- Date: Tue, 27 Oct 2009 09:35:35 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type:content-transfer-encoding; bh=kvqBs9F+xeGCQuT5otB0XFyN/aOCFNHMr56vriWy30g=; b=KxMxPDYanvkhvEkEJUNd0mI701wJCHeWbJuMHVC+Qpi6SO5u5Si2P1Pnre6BP47idw i2wspYaWoF5nogIFkpMvh91flhfpJoW3bJo/uzwp4Jfq8CYtWAjSoi21g6pCOoHrbVA5 ZCrflYqKs7B2xrwYr7WICKs9uCpi0K5NFRXcc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type :content-transfer-encoding; b=kcuC5jwXMmTX2HI4qNEN24AteFx7SOt0d6wWDmOGcYmsfGFjr34gudV23S1jEF1ml0 b8w9IOg4uS5lKoWEherYov6TpyWcePe9abLxUNAyOhtoHrXp4Ezb0Y+R+MDoW94OUr1y r9Aqv+jgX4ELdfw4wYvBUzWbSap/zgWYrIMVo=
В nginx 0.7.63 из структуры ngx_http_request_s убрано поле utf8,
которое используется в fancyindex_module. Соответственно получаем
ошибки при компиляции:
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:
In function 'make_content_buf':
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:428:
error: 'ngx_http_request_t' has no member named 'utf8'
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:635:18:
warning: "/*" within comment
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:305:
warning: unused variable 'months'
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:297:
warning: unused variable 'tp'
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:295:
warning: unused variable 'tm'
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:
In function 'ngx_http_fancyindex_merge_loc_conf':
/usr/src/redhat/SOURCES/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.c:942:
warning: unused parameter 'cf'
make[1]: ***
[objs/addon/nginx-fancyindex-0.1_beta5/ngx_http_fancyindex_module.o]
Error 1
Код, вызывающий ошибку:
entry->utf_len = (r->utf8) ? ngx_utf8_length(entry->name.data,
entry->name.len) : len;
Что теперь правильней использовать ngx_utf8_length или len?
--
dimka-linux,
Jabber: dimkalinux@xxxxxxxxx
Public key: 8B5EDD83
|