Displaying 20 results from an estimated 59 matches for "cp_acp".
2004 Jul 31
3
Bug in new_work_item
Hi all,
Windows 2000
Ruby 1.8.2 R7
VC++ 6.0
I noticed that if I try to call new_work_item and give
the task a name that already exists, I get a segfault:
C:\eclipse\workspace\win32-taskscheduler>ruby test.rb
"0.1.0"
test.rb:22:in `new_work_item'': NewWorkItem() function
failed (Win32::TaskSchedul
erError)
from test.rb:22
test.rb:22: [BUG] Segmentation fault
ruby
2005 May 18
2
Networking functionality?
Is there (if not, can we get) the functionality to query for
workstations in the local workgroup or domain?
Zach
2013 Apr 01
1
flac 1.3.0pre3 pre-release
...) is to make
UTF-8-to-UTF-16 conversion a bit smarter:
First try the conversion, assuming the string to be UTF-8-encoded.
If that fails, assume the string is in native encoding, and run the
conversion function again with appropriate source codepage (when using
W32 conversion functions that would be CP_ACP).
If that fails, fail the function call as usual.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (MingW32)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
iQEcBAEBAgAGBQJRWX2+AAoJEOs4Jb6SI2Cw914IAMkkQr7ZmiZ/Ei9nhXEtKATe
oASC/VEv/1MqJK2u1VF0hDIMjVjqHbqX2I+twEMQR5UXmH1oJXmhbZ...
2016 Jan 09
0
flac, UTF-8 and Windows
That's how I understand how flac.exe works with unicode under Windows:
There's a flag win_utf8_io_codepage that is equal either to CP_ACP or to CP_UTF8.
Initially it's equal to CP_ACP.
Then flac.exe/metaflac.exe call get_utf8_argv() that do some things and sets
win_utf8_io_codepage to CP_UTF8 on success. This is the only way to set this
flag to CP_UTF8. The programs continue to work only if get_utf8_argv() succeeds,
so we know t...
2008 Apr 22
1
HeapAlloc vs. malloc. How does HeapAlloc work?
...nrofentries = 0;
Nobody is checking NULL value of include_defs and later there is strcpy() with HeapAlloc as parameter.
In dlls/winspool.drv/info.c function 'static LPDEVMODEA DEVMODEdupWtoA(HANDLE heap, const DEVMODEW *dmW)' line 1709
???? if (pName) {
???????? len = MultiByteToWideChar(CP_ACP, 0, pName, -1, NULL, 0);
??????? nameW = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
???????? MultiByteToWideChar(CP_ACP, 0, pName, -1, nameW, len);
???? }
Again nobody is checking the nameW value. Maybe it is checked inside 'MultiByteToWideChar()' but this function doesn't re...
2010 Jan 23
1
Gamepads not working
Hi everyone,
when I try playing Atomic Bomberman with my gamepads, an ingame error message pops up saying:
"clue:'graf_print: coords off screen, x=320,y=170,w=322,h=20' internal error"
When there is no gamepad plugged in, I can play the game using my keyboard, it works perfectly. I don't know what's going on. I was able to play the game with multiple gamepads some
2001 Aug 14
1
Diablo loading hang
..."Y"
; Enable DirectX mouse grab
"DXGrab" = "Y"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "Y"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous&quo...
2004 Feb 25
5
Wide strings and LPCTSTR types
...ing LPCTSTR strings to wide strings with
something like this:
// Converts a Ruby string to a LPWSTR
LPCTSTR AllocWideLString(VALUE rbString){
char* str = STR2CSTR(rbString);
int length = (strlen(str)+1) * sizeof(WCHAR);
LPCTSTR lpStr = (LPCTSTR)malloc(length);
MultiByteToWideChar(
CP_ACP,
0,
str,
strlen(str)+1,
(LPWSTR)lpStr,
length
);
return lpStr;
}
But, that didn''t seem to work very well in testing. Is there a better
way? Otherwise, I''ll have to stick to casting for now.
Also, I noticed that there''s a IsTextU...
2013 Apr 23
2
Metaflac UTF-8 fixes
...f8/utf8.c
index beb815a..18495fe 100644
--- a/src/share/utf8/utf8.c
+++ b/src/share/utf8/utf8.c
@@ -203,7 +203,7 @@ int utf8_decode(const char *from, char **to)
return -1;
}
- chars = WideCharToMultiByte(GetConsoleCP(), WC_COMPOSITECHECK, unicode,
+ chars = WideCharToMultiByte(CP_ACP, WC_COMPOSITECHECK, unicode,
-1, NULL, 0, NULL, NULL);
if(chars < 0) /* underflow check */
@@ -224,7 +224,7 @@ int utf8_decode(const char *from, char **to)
return -1;
}
- err = WideCharToMultiByte(GetConsoleCP(), WC_COMPOSITECHECK, unicode,
+ err = WideC...
2001 Mar 23
1
wine.conf
...f present
UseDGA = Y
; Use XShm extension if present
UseXShm = Y
; Enable DirectX mouse grab
DXGrab = N
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
DesktopDoubleBuffered = N
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
TextCP=0
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it founds).
;; XVideoPort = 43
[fonts]
;Read documentation/fonts before adding aliases
Resolution = 96
Default = -adobe-times-
[serialports]
Com1=/dev/ttyS0
Com2=...
2013 Apr 01
0
flac 1.3.0pre3 pre-release
...on a bit smarter: First try the
>> conversion, assuming the string to be UTF-8-encoded. If that
>> fails, assume the string is in native encoding, and run the
>> conversion function again with appropriate source codepage (when
>> using W32 conversion functions that would be CP_ACP). If that
>> fails, fail the function call as usual.
>>
>
> I initially had it that way. I just didn't feel comfortable leaving
> it as it could in theory access wrong files. Granted, it would
> require having some rather weird names for files but it's still a
>...
2016 Jan 16
0
MSVC, win_utf8_io, static and dynamic libs
...tion breaks support of non-ASCII
filenames. Both flac.exe and libFLAC_dynamic.dll were staically
linked to different copies of win_utf8_io_static.lib, then flac.exe
sets its copy of win_utf8_io_codepage variable to CP_UTF8, and the copy
of this variable inside libFLAC_dynamic.dll is always equal to CP_ACP.
As a result flac sends UTF8-encoded strings to libFLAC, and libFLAC
treats them as ANSI-encoded.
2005 Jan 20
1
ChangeNotify help wanted
Hi all,
I''ve checked in some code to win32-changenotify. Unfortunately, it
doesn''t work right. I need some help. I don''t understand what,
exactly, I''m supposed to pass to ReadDirectoryChangesW() for the 2nd
argument, nor how to read the data back out.
There''s also a WCHAR issue that needs to be worked out with regards to
the FileName
2011 Sep 01
3
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...to the too weird i18n world!
We, Japanese, has got suffered for multibyte charset for 20 years.
I have added a comment in http://llvm.org/bugs/show_bug.cgi?id=10348 .
Of course I know, I don't think it would be a practical resolution.
FYI, it seems clang can retrieve mbcs path with s/CP_UTF8/CP_ACP/g.
E>bin\clang.exe -S なかむら\たくみ.c
なかむら\たくみ.c:4:2: error: #error
#error
^
1 error generated.
Though, you should know, MBCS still has an issue;
E>bin\clang.exe -S 表はダメ文字\表はダメ文字.c
clang: error: no such file or directory: '表はダメ文字\表はダメ文字.c'
clang: error: no input files
Note, "表&qu...
2013 Apr 05
1
flac 1.3.0pre3 pre-release
...r: First try the
>>> conversion, assuming the string to be UTF-8-encoded. If that
>>> fails, assume the string is in native encoding, and run the
>>> conversion function again with appropriate source codepage (when
>>> using W32 conversion functions that would be CP_ACP). If that
>>> fails, fail the function call as usual.
>>>
>> I initially had it that way. I just didn't feel comfortable leaving
>> it as it could in theory access wrong files. Granted, it would
>> require having some rather weird names for files but it's...
2001 Nov 04
0
HELP newbee: no application runs with wine.
...= "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
[fonts]
;Read documentation/fonts before adding aliases
"Resolution" = &qu...
2001 Sep 22
2
"No program start menu found"
...= "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous&qu...
2002 Feb 08
1
Wine, IE5, Win2000 and RH 7.2
...= "Y"
; Enable DirectX mouse grab
"DXGrab" = "N"
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
"DesktopDoubleBuffered" = "N"
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
"TextCP" = "0"
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it finds).
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous&quo...
2002 Aug 05
2
wine on suse7.3
...f present
UseDGA = Y
; Use XShm extension if present
UseXShm = Y
; Enable DirectX mouse grab
DXGrab = N
; Create the desktop window with a double-buffered visual
; (useful to play OpenGL games)
DesktopDoubleBuffered = N
; Code page used for captions in managed mode
; 0 means default ANSI code page (CP_ACP == 0)
TextCP=0
; Use this if you have more than one port for video on your setup
; (Wine uses for now the first 'input image' it founds).
;; XVideoPort = 43
;;Please, do not edit the next line
;;Configuration for wine version: 20020710
2006 May 26
13
win32-dir, unicode
Hi,
I''ve got a preliminary version of the pure Ruby version of win32-dir in
CVS. However, I was hoping to work out the Unicode issue. Run this:
from = "C:\\test"
to = "?????"
Dir.mkdir(from) unless File.exists?(from)
Dir.create_junction(to, from)
It works, but my explorer (and dos) window shows the name garbled. I
don''t think it''s a font