Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit99cd889

Browse files
committed
Change some callers to use pg_ascii_toupper().
The input is ASCII anyway, so it's better to be clear that it's notlocale-dependent.Discussion:https://postgr.es/m/450ceb6260cad30d7afdf155d991a9caafee7c0d.camel@j-davis.com
1 parent2bc7e88 commit99cd889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/backend/access/transam/xlogfuncs.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ pg_split_walfile_name(PG_FUNCTION_ARGS)
479479

480480
/* Capitalize WAL file name. */
481481
for (p=fname_upper;*p;p++)
482-
*p=pg_toupper((unsignedchar)*p);
482+
*p=pg_ascii_toupper((unsignedchar)*p);
483483

484484
if (!IsXLogFileName(fname_upper))
485485
ereport(ERROR,

‎src/backend/utils/adt/cash.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1035,7 +1035,7 @@ cash_words(PG_FUNCTION_ARGS)
10351035
appendStringInfoString(&buf,m0==1 ?" cent" :" cents");
10361036

10371037
/* capitalize output */
1038-
buf.data[0]=pg_toupper((unsignedchar)buf.data[0]);
1038+
buf.data[0]=pg_ascii_toupper((unsignedchar)buf.data[0]);
10391039

10401040
/* return as text datum */
10411041
res=cstring_to_text_with_len(buf.data,buf.len);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp