Re: Fix C4819 warning in MSVC - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Fix C4819 warning in MSVC
Date
Msg-id 1139878.1635783160@sss.pgh.pa.us
Whole thread Raw
In response to Re: Fix C4819 warning in MSVC  (Daniel Gustafsson <daniel@yesql.se>)
Responses Re: Fix C4819 warning in MSVC
List pgsql-hackers
Daniel Gustafsson <daniel@yesql.se> writes:
> On 1 Nov 2021, at 14:56, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> +1, but there are also C4819 warnings in fe_utils/print.c.  Can we get
>> rid of that too?  That one's a bit more integral to the code, since
>> (I think) it's complaining about the comments in the unicode_style table.
>> But maybe we could replace those with Unicode codes + symbol names?

> Aha, I missed that one when skimming the (quite chatty) log.  The attached
> addresses that file as well, replacing the comments with codepoints and names.
> It does make the section of the code more verbose, but also more readable IMO.

Generally +1, but I think you'll need to add some dashes to keep pgindent
from re-flowing those comment blocks (which would be a big hit to the
readability).

            regards, tom lane



pgsql-hackers by date:

Previous
From: Daniel Gustafsson
Date:
Subject: Re: Fix C4819 warning in MSVC
Next
From: Fujii Masao
Date:
Subject: Re: Improve logging when using Huge Pages