Re: [squid-users] squid 3.1 and error_directory

2010-02-10 Thread Amos Jeffries

Amos Jeffries wrote:

Eugene M. Zheganin wrote:

Hi.

Recently I decided to look on 3.1 branch on my test proxy. Everything 
seems to work fine, but I'm stuck with the problem with the error 
messages.
Whatever I do with the error_directory/error_default_language settings 
(leaving 'em commented out, or setting 'em to something) in my browser 
I see corrupted symbols. These are neither latin, nor cyrillic. They 
do look like it is UTF-8 treated like Cp1251, for example. Changing 
encoding of the page in browser doesn't help.

And the charset in  tag of such page is always "us-ascii" (why ?).


Um, thank you. I've seen something like this before. Will get on and 
check the fix.


The symbols you are seeing is probably UTF-8 treated as us-ascii. I've 
seen it as an artifact of 'tidy html' which is used by default on the 
translation toolkit we build the error pages with. I just have to check 
that is true and update the sources to leave the generated files 
slightly mangled.




How can I make pages be displayed at least in english ? I thought that 
this can be achieved by setting error_default_language to en, but I 
was wrong again.


I thought I am familiar with squid error directory and creating my own 
templates for 2.x/3.0 branches, but definitely I'm not with the 3.1


They are almost the same. The base templates are in templates/ERR_* for 
copying and adding your own ones in templates/* too.


That is the big difference, that your local templates always go in 
templates/* or a custom directory (with error_default_language pointing 
at it).


Amos


Sorry this took so long. It's now fixed and winding its way down to the 
next releases.
Please grab the langpack bundle after the next set of snapshots. It 
should contain corrected language files by this time tomorrow.


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
  Current Beta Squid 3.1.0.16


Re: [squid-users] squid 3.1 and error_directory

2010-02-09 Thread Amos Jeffries

Eugene M. Zheganin wrote:

Hi.

Recently I decided to look on 3.1 branch on my test proxy. Everything 
seems to work fine, but I'm stuck with the problem with the error messages.
Whatever I do with the error_directory/error_default_language settings 
(leaving 'em commented out, or setting 'em to something) in my browser I 
see corrupted symbols. These are neither latin, nor cyrillic. They do 
look like it is UTF-8 treated like Cp1251, for example. Changing 
encoding of the page in browser doesn't help.

And the charset in  tag of such page is always "us-ascii" (why ?).


Um, thank you. I've seen something like this before. Will get on and 
check the fix.


The symbols you are seeing is probably UTF-8 treated as us-ascii. I've 
seen it as an artifact of 'tidy html' which is used by default on the 
translation toolkit we build the error pages with. I just have to check 
that is true and update the sources to leave the generated files 
slightly mangled.




How can I make pages be displayed at least in english ? I thought that 
this can be achieved by setting error_default_language to en, but I was 
wrong again.


I thought I am familiar with squid error directory and creating my own 
templates for 2.x/3.0 branches, but definitely I'm not with the 3.1


They are almost the same. The base templates are in templates/ERR_* for 
copying and adding your own ones in templates/* too.


That is the big difference, that your local templates always go in 
templates/* or a custom directory (with error_default_language pointing 
at it).


Amos
--
Please be using
  Current Stable Squid 2.7.STABLE7 or 3.0.STABLE23
  Current Beta Squid 3.1.0.16


[squid-users] squid 3.1 and error_directory

2010-02-08 Thread Eugene M. Zheganin

Hi.

Recently I decided to look on 3.1 branch on my test proxy. Everything 
seems to work fine, but I'm stuck with the problem with the error messages.
Whatever I do with the error_directory/error_default_language settings 
(leaving 'em commented out, or setting 'em to something) in my browser I 
see corrupted symbols. These are neither latin, nor cyrillic. They do 
look like it is UTF-8 treated like Cp1251, for example. Changing 
encoding of the page in browser doesn't help.

And the charset in  tag of such page is always "us-ascii" (why ?).

How can I make pages be displayed at least in english ? I thought that 
this can be achieved by setting error_default_language to en, but I was 
wrong again.


I thought I am familiar with squid error directory and creating my own 
templates for 2.x/3.0 branches, but definitely I'm not with the 3.1


Thanks.