dbTalk Databases Forums  

[BUGS] BUG #2579: initcap should not capitalize letter after apostrophe

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] BUG #2579: initcap should not capitalize letter after apostrophe in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Dan Franklin
 
Posts: n/a

Default [BUGS] BUG #2579: initcap should not capitalize letter after apostrophe - 08-17-2006 , 12:17 PM







The following bug has been logged online:

Bug reference: 2579
Logged by: Dan Franklin
Email address: dfranklin (AT) fen (DOT) com
PostgreSQL version: 8.1.4
Operating system: GNU/Linux Fedora Core 5
Description: initcap should not capitalize letter after apostrophe
Details:

The statement
select initcap('John''s Parents');
returns
John'S Parents

The capital "S" after the apostrophe is incorrect. initcap should consider
the apostrophe to be a word-constituent for the purpose of identifying word
boundaries at which to start capitalizing.

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Reply With Quote
  #2  
Old   
tomas@tuxteam.de
 
Posts: n/a

Default Re: [BUGS] BUG #2579: initcap should not capitalize letter after apostrophe - 08-17-2006 , 02:16 PM






-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Aug 16, 2006 at 09:03:08PM +0000, Dan Franklin wrote:
Quote:
The following bug has been logged online:

Bug reference: 2579
Logged by: Dan Franklin
Email address: dfranklin (AT) fen (DOT) com
PostgreSQL version: 8.1.4
Operating system: GNU/Linux Fedora Core 5
Description: initcap should not capitalize letter after apostrophe
Details:

The statement
select initcap('John''s Parents');
returns
John'S Parents

The capital "S" after the apostrophe is incorrect. initcap should consider
the apostrophe to be a word-constituent for the purpose of identifying word
boundaries at which to start capitalizing.
Hmm. And what about Flann O'Brien?

Tough thing, this.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFE5L60Bcgs9XrR2kYRArkQAKCBI9uYSUckPWL6jzB3PF BXNAlwSgCeOoJx
NIBRgQZYqRajtx8HrUnW1Hs=
=GI/E
-----END PGP SIGNATURE-----


---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.