Advertisement:

Author Topic: Substring problems in Greek language  (Read 9537 times)

Offline CapadY

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,147
  • Gender: Male
Substring problems in Greek language
« 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
 
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.
 
Please, don't PM me for support unless invited.
If you don't understand this, you will be blacklisted.

Offline Norv

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 18,313
  • Blue Wolf
Re: Substring problems in Greek language
« Reply #1 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?
To-do lists are for deferral. The more things you write down the later they're done… until you have 100s of lists of things you don't do.
File a security report | Developers' Blog | Bug Tracker

Also known as Norv on D* | Norv N. on G+ | Norv on Github

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #2 on: May 02, 2011, 06:40:36 AM »
bumping this since it does not seem fixed. tested with svn trunk revision 10503


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.
« Last Edit: May 02, 2011, 06:52:15 AM by Illori »

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Substring problems in Greek language
« Reply #3 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.
Former SMF Core Developer | My Mods | SimplePortal

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #4 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.

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Substring problems in Greek language
« Reply #5 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?
Former SMF Core Developer | My Mods | SimplePortal

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #6 on: May 10, 2011, 01:46:50 PM »
attachments provided

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Substring problems in Greek language
« Reply #7 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?
Former SMF Core Developer | My Mods | SimplePortal

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #8 on: May 11, 2011, 06:15:16 AM »
see attached files. localhost running wamp server.

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Substring problems in Greek language
« Reply #9 on: May 14, 2011, 08:21:27 AM »
Can you link me to the exact wamp server installation you are using?
Former SMF Core Developer | My Mods | SimplePortal

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #10 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.

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #11 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

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #12 on: May 29, 2011, 05:29:24 AM »
[SiNaN] any update on this issue?

Offline [SiNaN]

  • SMF Super Hero
  • *******
  • Posts: 11,524
  • Young and Foolish
    • SimplePortal
Re: Substring problems in Greek language
« Reply #13 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.
Former SMF Core Developer | My Mods | SimplePortal

Offline Illori

  • Project Manager
  • SMF Master
  • *
  • Posts: 48,071
Re: Substring problems in Greek language
« Reply #14 on: May 29, 2011, 10:51:35 AM »
i could also duplicate it using the default packages in kubuntu, does that help you any?

Offline emanuele

  • SMF Super Hero
  • *******
  • Posts: 14,156
  • Gender: Male
  • THERE'S JUST ME
Re: Substring problems in Greek language
« Reply #15 on: May 29, 2011, 01:04:41 PM »
A method to replicate it is change in install.php:
Code: [Select]
'utf8_default' => false,
'utf8_required' => false,

to:
Code: [Select]
'utf8_default' => true,
'utf8_required' => true,

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

When this happens,
Code: [Select]
$db_character_set = 'utf8';
is not added to settings.php


Take a peek at what I'm doing! ;D



Hai bisogno di supporto in Italiano?

Aiutateci ad aiutarvi: spiegate bene il vostro problema: no, "non funziona" non è una spiegazione!!
1) Cosa fai,
2) cosa ti aspetti,
3) cosa ottieni.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,775
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Re: Substring problems in Greek language
« Reply #16 on: November 13, 2011, 11:38:00 AM »
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?