From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by yquem.inria.fr (Postfix) with ESMTP id 8666BBBAF for ; Thu, 30 Sep 2010 21:27:42 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AloCAKOBpEzRVaE0kGdsb2JhbACUKo1+CBUBAQEBCQkMBxEDH6wqiUSCF4ZHLohVAQEDBYU/BIRMhXCDYA X-IronPort-AV: E=Sophos;i="4.57,261,1283724000"; d="scan'208";a="71840635" Received: from mail-fx0-f52.google.com ([209.85.161.52]) by mail4-smtp-sop.national.inria.fr with ESMTP; 30 Sep 2010 21:27:42 +0200 Received: by fxm17 with SMTP id 17so2093274fxm.39 for ; Thu, 30 Sep 2010 12:27:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=muGAXQHeHSL3qZrsQ1V8Cuh5aw0eWMorL7pD/kAEsdk=; b=qlgEmZf4WqS/AijFv6mcWAEQzwch3WZUuCIPgZBrSoJcJveOcy8AnQlEY6ts9c50qm UJh8DQSTRlK+aLIA/v7ROZmu9T3SXw5fHqXp4GQwM5Vvlmlt4wYUj8Qp1nNepgRe5Q+H tHPglNeH6/2wFqpOihsTmNK1IPTRAxUNAgD8Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=nB7paHuiBzad16eWb0yH3HtHx5oA9aGNck1ocYBDyn3vAB19dCrqp1ej967dBPj0lg AWP3QPgppSe+Awhce/shfUyobAWWQyckQTe1GPuu7tCv9VKB6pK/Ntxb/CTYnkrVVpsk iiStkS+YqbCFN2ZhuMLuuCby2dYN8h8sp4pj8= Received: by 10.223.112.76 with SMTP id v12mr4362154fap.59.1285874860835; Thu, 30 Sep 2010 12:27:40 -0700 (PDT) Received: from lemon.local (221-141-133-95.pool.ukrtel.net [95.133.141.221]) by mx.google.com with ESMTPS id a6sm151992faa.20.2010.09.30.12.27.38 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 30 Sep 2010 12:27:39 -0700 (PDT) Date: Thu, 30 Sep 2010 22:27:36 +0300 From: ygrek To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Windows filenames and Unicode Message-Id: <20100930222736.3ddbb7bd.ygrekheretix@gmail.com> In-Reply-To: References: X-Mailer: Sylpheed 3.0.2 (GTK+ 2.20.1; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam: no; 0.00; steckler:01 steck:01 ocaml:01 runtime:01 translated:01 translated:01 ocaml:01 wrote:01 msvc:01 caml-list:01 functions:01 strings:01 primitives:01 filenames:02 modify:05 On Wed, 29 Sep 2010 17:26:52 +1000 Paul Steckler wrote: > For Windows, I could use the same invariant, and modify the OCaml > runtime so that all calls to > Windows file primitives have those strings translated to UTF-16 (and > return values translated back > to UTF-8). That is, I'd have to build a custom version of OCaml and > wrap CreateFile, etc. with > such Unicode translation functions. Have a look at http://savannah.nongnu.org/patch/?4515 (and http://ygrek.org.ua/p/ocaml_unicode.html for ocaml/msvc). -- ygrek http://ygrek.org.ua