Mailinglist Archive: yast-devel (23 mails)

< Previous Next >
Re: [yast-devel] Re: YCP substring() Was: YCP String operator [] and UTF-8
Dne 3.4.2012 15:39, Arvin Schnell napsal(a):
YCP has the function lsubstring:

http://doc.opensuse.org/projects/YaST/openSUSE11.3/tdg/lsubstring-rest.html

Yeah, yes, thanks for pointing it out!

But shouldn't be the default behavior opposite?, i.e. the default substring()
should be UTF-8 aware and have an extra function for byte operation?

My quick grep in SVN trunk found just one (!!) usage of lsubstring()
function in all YCP code. That's suspicious, I guess there could be other
misused
substring() calls...


Well, changing the default behavior is very likely not an option as we have
the UTF-8 aware call. So should we do substring() usage audit? Check all usages?

What do you think?

(Actually the problem is not so critical, the "bug" is there for ages,
but IMHO we should do something about it...)

--

Best Regards

Ladislav Slez√°k
Yast Developer
------------------------------------------------------------------------
SUSE LINUX, s.r.o. e-mail: lslezak@xxxxxxx
Lihovarsk√° 1060/12 tel: +420 284 028 960
190 00 Prague 9 fax: +420 284 028 951
Czech Republic http://www.suse.cz/
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx

< Previous Next >
List Navigation
Follow Ups