Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: CapadY on December 06, 2010, 03:35:20 PM

Title: Substring problems in Greek language
Post by: CapadY on December 06, 2010, 03:35:20 PM
I've been looking at the next topic:

http://www.simplemachines.org/community/index.php?topic=411715.0 (http://www.simplemachines.org/community/index.php?topic=411715.0)

In this topic are also some screen prints.

This problem is caused because the substring action at line 290 or 292 in Calender.template.php don't give a correct result when using the Greek UTF8 language files. When using English or Dutch language files it is working fine.

Version 2.3 of SMF is running at this forum.
Title: Re: Substring problems in Greek language
Post by: Norv on December 06, 2010, 03:38:41 PM
This seems like a known bug in RC3, which has been solved in RC4.
Does it still happen in RC4?
Title: Re: Substring problems in Greek language
Post by: Illori on May 02, 2011, 06:40:36 AM
bumping this since it does not seem fixed. tested with svn trunk revision 10503

Quote from: Illori on May 02, 2011, 06:37:52 AM

out of your list to verify this one seems to be the only that i can verify still exists, it works fine in greek, but does not work in greek-utf8

I tested a few other languages, dutch-utf8 and turkish-utf8, looks like turkish-utf8 has this issue as well but only for the character for wednesday in the mini calendar on the left side.

also tested with russian-utf8, this issue seems to be able to be duplicated with any language that does not use the a-z alphabet for the first letter of each day of the week. I will bump that topic with further information.

tested with adding $global_character_set = 'utf8';  to settings.php it had no effect on this issue.
Title: Re: Substring problems in Greek language
Post by: [SiNaN] on May 10, 2011, 01:37:45 PM
Is that a clean UTF-8 install? I tested it with today's build using Turkish, Greek and Russian (all both UTF-8 and non-UTF-8) and couldn't reproduce.
Title: Re: Substring problems in Greek language
Post by: Illori on May 10, 2011, 01:39:52 PM
it is a clean install, whatever trunk is by default, tested in firefox, in opera the question marks are blank boxes.
Title: Re: Substring problems in Greek language
Post by: [SiNaN] on May 10, 2011, 01:42:02 PM
Can you attach the Calendar.template.php and index.greek.php language file you are having this issue with, here?
Title: Re: Substring problems in Greek language
Post by: Illori on May 10, 2011, 01:46:50 PM
attachments provided
Title: Re: Substring problems in Greek language
Post by: [SiNaN] on May 11, 2011, 03:51:45 AM
The files seem to be fine as well. Is your test site online? If not, can you attach me your PHP info saved as HTML and HTML page source of the calendar page with the bug?
Title: Re: Substring problems in Greek language
Post by: Illori on May 11, 2011, 06:15:16 AM
see attached files. localhost running wamp server.
Title: Re: Substring problems in Greek language
Post by: [SiNaN] on May 14, 2011, 08:21:27 AM
Can you link me to the exact wamp server installation you are using?
Title: Re: Substring problems in Greek language
Post by: Illori on May 14, 2011, 08:40:12 AM
http://www.wampserver.com/en/dl64.php i had an older version but upgraded to this one, i still have the older apache/php/mysql etc but I am running the newer version from this install.
Title: Re: Substring problems in Greek language
Post by: Illori on May 14, 2011, 09:54:50 AM
tried in virtalbox kubuntu 11.4 apache/php/mysql from default repro's installed greek utf8 enabled calendar and shows the same results as in firefox when viewed in rekonq.

apache 2.2.17
php 5.3.5
mysql 5.1.54
rekonq 0.7.0 kde 5.6.2
Title: Re: Substring problems in Greek language
Post by: Illori on May 29, 2011, 05:29:24 AM
[SiNaN] any update on this issue?
Title: Re: Substring problems in Greek language
Post by: [SiNaN] on May 29, 2011, 10:20:14 AM
It won't let me install WampServer on school computers because our accounts are restricted and I can't reproduce it otherwise and I can't fix something I can't reproduce. Someone else will have to look into this.
Title: Re: Substring problems in Greek language
Post by: Illori on May 29, 2011, 10:51:35 AM
i could also duplicate it using the default packages in kubuntu, does that help you any?
Title: Re: Substring problems in Greek language
Post by: emanuele on May 29, 2011, 01:04:41 PM
A method to replicate it is change in install.php:
'utf8_default' => false,
'utf8_required' => false,


to:
'utf8_default' => true,
'utf8_required' => true,


in this way I was able to reproduce it with mysql, firstly appeared in postgresql.

When this happens,
$db_character_set = 'utf8';

is not added to settings.php
Title: Re: Substring problems in Greek language
Post by: Joshua Dickerson on November 13, 2011, 11:38:00 AM
Same issue as http://www.simplemachines.org/community/index.php?topic=347467.0 and it was fixed.