git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.

From
Peter Krefting <peter@softwolves.pp.se>
Date
Mar 4, 2009, 10:53 UTC
Message-ID
<alpine.DEB.2.00.0903041151440.8926@perkele.intern.softwolves.pp.se>
In-Reply-To
<450196A1AAAE4B42A00A8B27A59278E709F076D2@EXCHANGE.trad.tradestation.com>
John Dlugosz:
> Actually, UTF-8 is a valid code page on Windows.

Yes, but I am unsure whether it can be set as a thread locale for the sake of file APIs.

> Also, there is a national code page that =will= represent all file names 
> on the systems and is supported: That is the Chinese GB18030, code page 
> 54936.

Yeah, but unfortunately it is explicitly documented that it is only supported in MultiByteToWideChar, WideCharToMultiByte and some text painting APIs in Windows, i.e the stdio functions and others may break horribly.

-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: John DlugoszNext: John Dlugosz
Message 2 of 3 in “Re: [RFC PATCH] Windows: Assume all file names to be UTF-8 encoded.”
  1. John DlugoszMar 3, 2009
  2. Peter KreftingMar 4, 2009
  3. John DlugoszMar 4, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.