From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eugen Anghel Newsgroups: gmane.emacs.devel Subject: Lisp_String to LPWSTR Date: Sat, 3 Oct 2009 00:59:39 +0300 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1254520904 31603 80.91.229.12 (2 Oct 2009 22:01:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 2 Oct 2009 22:01:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 03 00:01:37 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtqC0-0007jK-Ml for ged-emacs-devel@m.gmane.org; Sat, 03 Oct 2009 00:01:36 +0200 Original-Received: from localhost ([127.0.0.1]:57256 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtqBz-0003l7-WA for ged-emacs-devel@m.gmane.org; Fri, 02 Oct 2009 18:01:36 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtqAa-00020L-1M for emacs-devel@gnu.org; Fri, 02 Oct 2009 18:00:08 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtqAV-0001u6-RL for emacs-devel@gnu.org; Fri, 02 Oct 2009 18:00:07 -0400 Original-Received: from [199.232.76.173] (port=50010 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtqAV-0001to-Jx for emacs-devel@gnu.org; Fri, 02 Oct 2009 18:00:03 -0400 Original-Received: from mail-bw0-f220.google.com ([209.85.218.220]:53476) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MtqAV-0006s2-8I for emacs-devel@gnu.org; Fri, 02 Oct 2009 18:00:03 -0400 Original-Received: by bwz20 with SMTP id 20so1427008bwz.42 for ; Fri, 02 Oct 2009 14:59:59 -0700 (PDT) Original-Received: by 10.204.25.5 with SMTP id x5mr1360492bkb.166.1254520799327; Fri, 02 Oct 2009 14:59:59 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:115874 Archived-At: Hi, What would be the best way to convert from a Lisp_String* to an UTF-16 encoded string? I've tried something like code_convert_string_norecord(mystring, Qutf_16, 0) but that doesn't seem to do what I want. I'm trying to work on this (from etc/TODO): ** Switch the Windows port to using Unicode keyboard input (maybe). and I need to convert strings before passing them to W-variant winapi functions. Thanks, Eugen