[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-23 Thread Sezai YILMAZ
Tom Lane wrote: > > Sezai YILMAZ <[EMAIL PROTECTED]> writes: > > With Turkish locale it is not possible to write SQL queries in > > CAPITAL letters. SQL identifiers like "INSERT" and "UNION" first > > are downgraded to "ınsert" and "unıon". Then "ınsert" and "unıon" > > does not match as SQL id

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-23 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > (Just a follow up...) > I haven't had time to review the spec on this, but my recollection is > that the entire SQL language can be described using the SQL_ASCII > character set. I would assume that this might include unquoted > identifiers. The keyw

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-23 Thread Thomas Lockhart
> > Anyway, your proposal is just fine since we haven't decoupled these > > things farther back in the server. But eventually we should hope to have > > SQL_ASCII and other character sets enforced in context. > Now I'm confused. Are you saying that we *should* treat identifier case > under ASCII

AW: [HACKERS] Re: [BUGS] Turkish locale bug

2001-02-20 Thread Zeugswetter Andreas SB
> > Anyway, your proposal is just fine since we haven't decoupled these > > things farther back in the server. But eventually we should hope to have > > SQL_ASCII and other character sets enforced in context. > > Now I'm confused. Are you saying that we *should* treat identifier case > under AS

Re: AW: [HACKERS] Re: [BUGS] Turkish locale bug

2001-02-20 Thread Tom Lane
Zeugswetter Andreas SB <[EMAIL PROTECTED]> writes: >> Now I'm confused. Are you saying that we *should* treat identifier case >> under ASCII rules only? That seems like a step backwards to me, but >> then I don't use any non-US locale myself... > I think we need to treat anything that is not q

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-20 Thread Tom Lane
Thomas Lockhart <[EMAIL PROTECTED]> writes: > Anyway, your proposal is just fine since we haven't decoupled these > things farther back in the server. But eventually we should hope to have > SQL_ASCII and other character sets enforced in context. Now I'm confused. Are you saying that we *should*

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-20 Thread Thomas Lockhart
Merhaba Sezai! > I am starting to think that the only real solution is a special case > for Turkish users. Perhaps use tolower() normally but have a compile- > time option to use a non-locale-aware method: istm that this illustrates the tip of the locale iceberg as we think about moving to a mo

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-20 Thread Tom Lane
Sezai YILMAZ <[EMAIL PROTECTED]> writes: > You are right. What about this one? > setlocale(LC_ALL, "C"); > for(i = 0; yytext[i]; i++) > if (isascii((unsigned char)yytext[i]) && > isupper(yytext[i]))

Re: [HACKERS] Re: [BUGS] Turkish locale bug

2001-02-19 Thread Tom Lane
Larry Rosenman <[EMAIL PROTECTED]> writes: > What about EBCDIC (IBM MainFrame, I.E. Linux on S/390, Z/390). Right, that was what I meant about not wanting to hardwire assumptions about ASCII. We could instead code it as if (isupper(ch)) ch = ch + ('a' - 'A'); which I believe

Re: [HACKERS] Re: [BUGS] Turkish locale bug

2001-02-19 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [010219 21:02]: > Larry Rosenman <[EMAIL PROTECTED]> writes: > > What about EBCDIC (IBM MainFrame, I.E. Linux on S/390, Z/390). > > Right, that was what I meant about not wanting to hardwire assumptions > about ASCII. > > We could instead code it as > > if

Re: [HACKERS] Re: [BUGS] Turkish locale bug

2001-02-19 Thread Larry Rosenman
* Tom Lane <[EMAIL PROTECTED]> [010219 20:31]: > > Hm. Several problems here: > > (1) This solution would break in other locales where isupper() may > return TRUE for characters other than 'A'..'Z'. > > (2) We could fix that by gutting the isascii/isupper test as well, > reducing it to "yytext

[HACKERS] Re: [BUGS] Turkish locale bug

2001-02-19 Thread Tom Lane
Sezai YILMAZ <[EMAIL PROTECTED]> writes: > With Turkish locale it is not possible to write SQL queries in > CAPITAL letters. SQL identifiers like "INSERT" and "UNION" first > are downgraded to "ýnsert" and "unýon". Then "ýnsert" and "unýon" > does not match as SQL identifier. Ugh. >